Anatol Belski
796fdb4bcc
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
fileinfo: magic: Backport mime type support for woff/woff2 fonts
2022-09-18 14:44:00 +02:00
Anatol Belski
34fa65a6c2
fileinfo: magic: Backport mime type support for woff/woff2 fonts
...
Upstream patch: 7a821aedc1
Fixes GH-8805.
Signed-off-by: Anatol Belski <ab@php.net>
(cherry picked from commit 8a2ebe069148909a00739c83e9bcc031734bf826)
2022-09-18 14:39:12 +02:00
Ilija Tovilo
52850a4c0f
Fix cleaup of fileinfo test
2022-09-14 22:18:59 +02:00
Bob Weinand
a01dd9feda
Revert "Port all internally used classes to use default_object_handlers"
...
This reverts commit 94ee4f9834
.
The commit was a bit too late to be included in PHP 8.2 RC1. Given it's a massive ABI break, we decide to postpone the change to PHP 8.3.
2022-09-14 11:13:23 +02:00
Bob Weinand
94ee4f9834
Port all internally used classes to use default_object_handlers
...
Signed-off-by: Bob Weinand <bobwei9@hotmail.com>
2022-08-31 16:45:27 +02:00
Máté Kocsis
b4ec3e9bc0
Do not generate CONST_CS when registering constants ( #9439 )
2022-08-28 08:27:19 +02:00
Michael Voříšek
60189aa96a
Skip locale tests /w musl libc ( #9141 )
2022-07-25 23:56:14 +01:00
Máté Kocsis
e328c68305
Rename @cname to @cvalue in stubs ( #9043 )
...
@cname currently refers to the constant name in C. However, it is not always a (constant) name, but sometimes a function invocation, so naming it as @cvalue would be more appropriate.
2022-07-19 15:11:42 +02:00
Stanislav Malyshev
b2f692a9f8
Merge branch 'PHP-8.1'
2022-07-05 00:59:43 -06:00
Christoph M. Becker
ca6d511fa5
Fix #81723 : Memory corruption in finfo_buffer()
...
We need to use the same memory allocator throughout.
2022-07-05 00:44:00 -06:00
Pierrick Charron
6fd2b39397
Indent with TAB in .h files generated by gen_stub
2022-06-13 08:55:54 -04:00
Máté Kocsis
debd38f851
Add support for sensitive parameters in stubs
2022-06-04 18:15:05 +02:00
Máté Kocsis
d457519b65
Declare ext/fileinfo constants in stubs ( #8701 )
2022-06-04 10:22:09 +02:00
George Peter Banyard
d08451b2ca
Replace php_stdint.h header with standard headers ( #8613 )
2022-05-29 11:20:56 +01:00
David Carlier
45e623da26
libmagic: use php_memnstr instead of memmem
...
Closes GH-8391.
2022-05-23 10:57:44 +02:00
George Peter Banyard
2ecd46f48f
Initialise zend_stat_t to fix MSAN build
2022-05-22 16:06:27 +01:00
Anatol Belski
8de75fa754
fileinfo: Re-add Apple flag
...
It is not supported for all kinds of data, but it is definitely usable.
Signed-off-by: Anatol Belski <ab@php.net>
2022-04-15 14:44:50 +02:00
George Peter Banyard
16c98d481f
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix Bug #81462 mime_content_type() indicates wrong arg num on TypeError
2021-09-20 22:48:46 +01:00
George Peter Banyard
0ea38b9509
Fix Bug #81462 mime_content_type() indicates wrong arg num on TypeError
2021-09-20 22:48:00 +01:00
Anatol Belski
1399e08ab9
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
fileinfo: Fix test value for s390x on travis-ci
2021-09-19 16:04:47 +02:00
Anatol Belski
fafdf744fa
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
fileinfo: Fix test value for s390x on travis-ci
2021-09-19 16:04:35 +02:00
Anatol Belski
8f75ab0dfc
fileinfo: Fix test value for s390x on travis-ci
...
Signed-off-by: Anatol Belski <ab@php.net>
2021-09-19 16:02:30 +02:00
Anatol Belski
62bfadc3b8
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
fileinfo: Capture more sizes for test as delivered by travis-ci
fileinfo: Capture more sizes for test as delivered by AppVeyor
2021-09-18 23:18:11 +02:00
Anatol Belski
d225770e9e
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
fileinfo: Capture more sizes for test as delivered by travis-ci
fileinfo: Capture more sizes for test as delivered by AppVeyor
2021-09-18 23:17:41 +02:00
Anatol Belski
6e0acece68
fileinfo: Capture more sizes for test as delivered by travis-ci
...
Signed-off-by: Anatol Belski <ab@php.net>
2021-09-18 23:16:38 +02:00
Anatol Belski
e56435c86d
fileinfo: Capture more sizes for test as delivered by AppVeyor
...
Signed-off-by: Anatol Belski <ab@php.net>
2021-09-18 23:06:57 +02:00
Anatol Belski
f88fb1af5f
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
fileinfo: Adjust value in test
2021-09-18 22:52:52 +02:00
Anatol Belski
a4f85a5796
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
fileinfo: Adjust value in test
2021-09-18 22:52:30 +02:00
Anatol Belski
0208374ad4
fileinfo: Adjust value in test
...
Signed-off-by: Anatol Belski <ab@php.net>
2021-09-18 22:51:08 +02:00
Anatol Belski
df5d7ec482
fileinfo: Fix test skip condition
...
Signed-off-by: Anatol Belski <ab@php.net>
2021-09-18 22:36:04 +02:00
Anatol Belski
31c908af8e
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
libmagic: Update patch
fileinfo: Fixed bug #78987 High memory usage during encoding detection
2021-09-18 22:11:06 +02:00
Anatol Belski
3c40d9bf77
libmagic: Update patch
...
Signed-off-by: Anatol Belski <ab@php.net>
2021-09-18 22:04:32 +02:00
Anatol Belski
2a9a521d71
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
fileinfo: Fixed bug #78987 High memory usage during encoding detection
2021-09-18 22:02:56 +02:00
Anatol Belski
fa96c7e000
fileinfo: Fixed bug #78987 High memory usage during encoding detection
...
The default buffer size for the encoding detection is set to 64K.
Signed-off-by: Anatol Belski <ab@php.net>
2021-09-18 21:00:30 +02:00
Máté Kocsis
50f31829b1
Generate optimizer func info from stubs for a few extensions - part 2 ( #7401 )
...
ext/bcmath, ext/fileinfo, ext/filter, ext/gettext, ext/session
2021-08-25 15:29:46 +02:00
Máté Kocsis
2378f35787
Use single line phpdoc in stubs where possible
2021-07-20 13:16:56 +02:00
Joe Watkins
570d9b63e9
Not serializable flag permeation
2021-07-20 12:28:35 +02:00
Nikita Popov
4a107523bf
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Regenerate arginfo file
Fixed bug #80197
2021-06-14 11:00:15 +02:00
Nikita Popov
5dc31e0cb6
Fixed bug #80197
...
Use "libmagic/magic.h" rather than <magic.h> to make sure that we
use the bundled libmagic, even if there is a system libmagic on the
include path.
2021-06-14 10:59:13 +02:00
Máté Kocsis
657cb45b84
Declare tentative return types for ext/fileinfo
...
Relates to GH-6985
2021-05-26 12:30:31 +02:00
KsaR
01b3fc03c3
Update http->https in license ( #6945 )
...
1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https.
2. Update few license 3.0 to 3.01 as 3.0 states "php 5.1.1, 4.1.1, and earlier".
3. In some license comments is "at through the world-wide-web" while most is without "at", so deleted.
4. fixed indentation in some files before |
2021-05-06 12:16:35 +02:00
Anatol Belski
9b78000432
Revert "fileinfo: Obey POSIX in pattern conversion"
...
This reverts commit 343d1c2b1f
.
Also remove the incompatible test data for time being. The new line
handling will need an extra fix.
Signed-off-by: Anatol Belski <ab@php.net>
2021-04-24 14:59:53 +02:00
Anatol Belski
343d1c2b1f
fileinfo: Obey POSIX in pattern conversion
...
Signed-off-by: Anatol Belski <ab@php.net>
2021-04-24 01:40:15 +02:00
Anatol Belski
34bdab538b
fileinfo: Pull upstream tests
...
Integrating the upstream tests is important to ensure the quality of the
patch and to ensure the parity in the function.
Signed-off-by: Anatol Belski <ab@php.net>
2021-04-23 22:01:34 +02:00
Anatol Belski
6ab4286f2e
fileinfo: Fix version in patch update script
...
Signed-off-by: Anatol Belski <ab@php.net>
2021-04-09 23:18:21 +02:00
Anatol Belski
7251f3900e
fileinfo: Update the patch
...
Signed-off-by: Anatol Belski <ab@php.net>
2021-04-06 22:43:05 +02:00
Anatol Belski
ecfb888354
fileinfo: Turn back the WS check mitigation
...
Looks like there's still a timing issue shown on some pipeline runs.
Signed-off-by: Anatol Belski <ab@php.net>
2021-04-06 12:29:04 +02:00
Anatol Belski
4af6679d78
fileinfo: Update libmagic.patch
...
Signed-off-by: Anatol Belski <ab@php.net>
2021-04-05 22:41:00 +02:00
Anatol Belski
f60dc3bd34
fileinfo: More VS compat
...
Signed-off-by: Anatol Belski <ab@php.net>
2021-04-05 21:23:26 +02:00
Anatol Belski
cd238bd09d
fileinfo: Fix VS compat
...
Signed-off-by: Anatol Belski <ab@php.net>
2021-04-05 21:10:20 +02:00