Levi Morrison
b63df3ce0e
Stop copying zend_module_entry ( #8551 )
...
I did some historical digging and could not figure out why a copy is
made. Additionally, the copy was not using the `.size` member, so it
was probably wrong, but it's been that way for quite some time.
2022-05-24 09:13:38 -06:00
Christoph M. Becker
cf971a1401
Fix potential parallel test conflict
...
Cf. <https://ci.appveyor.com/project/php/php-src/builds/43644961/job/xibhmsbs8panajy2?fullLog=true#L15770 >.
2022-05-24 16:49:19 +02:00
Alex Dowad
83db088fc2
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix mb_detect_encoding's recognition of Slavic names
2022-05-24 15:33:24 +02:00
Alex Dowad
9bb97ee8bc
Fix mb_detect_encoding's recognition of Slavic names
...
Thanks to Côme Chilliet for reporting that mb_detect_encoding was not
detecting the desired text encoding for strings containing š or Ž.
These characters are used in Czech, Serbian, Croatian, Bosnian,
Macedonian, etc. names.
2022-05-24 15:32:20 +02:00
Christoph M. Becker
6c1ea04b9a
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix pcntl Haiku build
2022-05-24 15:02:12 +02:00
Christoph M. Becker
5017240ccc
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix pcntl Haiku build
2022-05-24 15:00:47 +02:00
David Carlier
e33de9dda8
Fix pcntl Haiku build
...
guarding SIGIO constant.
Closes GH-8612.
2022-05-24 14:59:50 +02:00
Christoph M. Becker
06c3f9b043
Use proper cast
...
Casting to `void**` silences the compiler, but only works because that
is dereferenced to a generic `void*`.
2022-05-24 14:52:32 +02:00
Michael Voříšek
fb1c7eff04
Fix some level 1 MSVC compiler warnings on x86
...
See GH-8479.
2022-05-24 13:05:16 +02:00
George Peter Banyard
5ba6ecd523
Minor refactoring of main/main.c and TSRM ( #8608 )
2022-05-24 08:34:55 +01:00
George Peter Banyard
9f06bb3bb6
Drop remaining usage of u_char in favour of standard C99 uint8_t ( #8611 )
...
Plus minor drive-by fixes
2022-05-23 21:57:31 +01:00
George Peter Banyard
59b4fdbb2b
Use standard C99 uint8_t type instead of u_char type for crypt_freesec ( #8610 )
2022-05-23 19:06:41 +01:00
Christoph M. Becker
08d1593c7d
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Fix GH-8538: SoapClient may strip parts of nmtokens
2022-05-23 16:53:16 +02:00
Christoph M. Becker
ee9a3fa762
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix GH-8538: SoapClient may strip parts of nmtokens
2022-05-23 16:51:32 +02:00
Christoph M. Becker
2a13304b2e
Fix GH-8538: SoapClient may strip parts of nmtokens
...
When stripping the namespace prefix, we can assume that this does not
contain any colons, while the rest of the name may contain colons.
Hence we must not use `strrchr()` but rather `strchr()` instead.
Closes GH-8543.
2022-05-23 16:49:12 +02:00
Dmitry Stogov
f135ed9a8a
Fix memory leak
...
This fixes oss-fuzz #47527
2022-05-23 13:33:20 +03:00
David Carlier
45e623da26
libmagic: use php_memnstr instead of memmem
...
Closes GH-8391.
2022-05-23 10:57:44 +02:00
Máté Kocsis
54de945b87
Added a few missing punctuation marks in UPGRADING
2022-05-23 09:51:43 +02:00
Máté Kocsis
7ec2950d79
Add upgrading entry for readonly classes
2022-05-23 09:48:41 +02:00
Máté Kocsis
a3f8bb33cd
Remove special case for the error message of static properties in readonly classes
2022-05-23 09:44:40 +02:00
Ilija Tovilo
85d41da32a
Merge branch 'PHP-8.1'
...
* PHP-8.1:
[skip ci] Add NEWS entry
Fix undefined behavior in php_set_inet6_addr
Reduce the scope of XFAIL (#8592 )
2022-05-22 23:29:53 +02:00
Ilija Tovilo
c71e75bb11
[skip ci] Add NEWS entry
2022-05-22 23:29:32 +02:00
Ilija Tovilo
7a2747ba78
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Fix undefined behavior in php_set_inet6_addr
Reduce the scope of XFAIL (#8592 )
2022-05-22 23:27:47 +02:00
Ilija Tovilo
f0480eb4de
Fix undefined behavior in php_set_inet6_addr
...
Postfix `++` on `NULL` is undefined behavior
Closes GH-8607
2022-05-22 23:23:47 +02:00
Máté Kocsis
14da1cb909
Add support for class constants in stubs ( #7434 )
2022-05-22 22:27:23 +02:00
Michael Voříšek
dfb68fe03f
Remove XFAIL from sibling method call test
2022-05-22 21:51:42 +02:00
George Peter Banyard
de41d6b0ce
I shall never touch anything Windows related
2022-05-22 16:46:33 +01:00
George Peter Banyard
892927eb14
Use proper function prototypes in win32/glob.c
...
This just confused the hell out of me
2022-05-22 16:34:26 +01:00
George Peter Banyard
265c88b9e7
Don't initialise pointers to zend_stat_t
2022-05-22 16:13:44 +01:00
George Peter Banyard
2ecd46f48f
Initialise zend_stat_t to fix MSAN build
2022-05-22 16:06:27 +01:00
Nikita Popov
cc506a81e1
Used string with biased hash for double deduplication
...
Rather than using a separate hash table for doubles, use the same
biases hash approach we use for everything else. Either way works
fine, but there doesn't seem to be any strong reason to use a
different approach for doubles than we use for other cases.
2022-05-21 21:58:06 +02:00
Nikita Popov
83e0a5d2a7
Assert no unrelated literals where unsupported
...
In the interest of being defensive.
Also drop an unnecessary check for a value that cannot be null.
2022-05-21 21:17:09 +02:00
Ilija Tovilo
a5a89cc222
Fix stream_wrapper_unregister() resource leak
...
Closes GH-8548
Closes GH-8587
2022-05-21 18:49:43 +02:00
Nikita Popov
82ab848daf
Remove separate valid_T set
...
Rather than keeping track of a separate valid_T set (which must
always be in sync with map_T), use a dummy value in map_T to
denote unallocated temporaries.
2022-05-21 18:10:42 +02:00
Nikita Popov
ae1132b01a
Remove unused temporaries from taken map
...
If the result has no uses we need to allocate it when visiting the
defining instruction. However, we should still go through the
logic to remove the temporary from the taken map afterwards,
as the temporary can still be reused prior to the defining
instruction.
2022-05-21 18:01:37 +02:00
Nikita Popov
517c01b79b
Don't classify literals during compaction
...
This seems to be a leftover from when we were storing cache slots
inside literals and had to prevent merging of literals with
incompatible cache slots. Nowadays the LITERAL_* classification
is not actually used for anything, we're only interested in the
number of related literals.
2022-05-21 17:36:46 +02:00
Nikita Popov
8a37f6b96f
Allow compacting LITERAL_VALUE with related literals
...
Nowadays we include the content of all the related literals in the
cache key, so DECLARE_CLASS (where both literals cannot be derived
from each other) no longer needs this special case.
2022-05-21 17:24:11 +02:00
Nikita Popov
82d407b7e0
Revert "Refactor CLI SAPI php_cli_server_client struct to use zend_string ( #8522 )"
...
This reverts commit 9b19d90432 .
This has broken the ZEND_RC_DEBUG build.
2022-05-21 16:52:21 +02:00
Arnaud Le Blanc
96838129ea
Panic with abort() ( #8590 )
2022-05-21 15:07:00 +02:00
David CARLIER
016ac7c132
[skip ci] UPGRADING note update, follow-up #8411 ( #8598 )
2022-05-21 12:12:09 +02:00
David Carlier
2410e378c1
Add SO_MEMINFO socket option for gathering socket related info
2022-05-20 22:06:53 +01:00
Arnaud Le Blanc
c12141c860
Reduce the scope of XFAIL ( #8592 )
2022-05-20 19:11:00 +02:00
George Peter Banyard
862ef7a332
Fix test expectation for date bug 81565
2022-05-20 14:29:46 +01:00
Christoph M. Becker
33fc9e5a77
Build ext/zip as shared library by default on Windows
...
This allows users to use PECL/zip, which is well maintained and often
brings new features which are not yet available in ext/zip, as drop-in
replacement for the official Windows php-src builds.
Closes GH-8549.
2022-05-20 14:31:32 +02:00
Derick Rethans
7fedb43f15
Merge branch 'PHP-8.1'
2022-05-20 13:25:43 +01:00
Derick Rethans
3d53e59b22
Merge remote-tracking branch 'derickr/merge-timelib-2021.12-and-add-tests' into PHP-8.1
2022-05-20 13:25:30 +01:00
Derick Rethans
008016b536
Fixed bug #81565 (date parsing fails when provided with timezones including seconds)
2022-05-20 13:18:43 +01:00
Derick Rethans
78d5076b25
Fixed bug #51987 (Datetime fails to parse an ISO 8601 ordinal date (extended format))
2022-05-20 13:18:43 +01:00
Derick Rethans
23dbefdb7b
Fixed bug #51934 (strtotime plurals / incorrect time)
2022-05-20 13:18:43 +01:00
Derick Rethans
20d8c1bea5
Fixed bug #68549 (Timezones and offsets are not properly used when working with dates)
2022-05-20 13:18:43 +01:00