Dmitry Stogov
91dc3e15e9
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fixed incorrect QM_ASSIGN elimination
2023-07-31 14:51:06 +03:00
Dmitry Stogov
b5f8a7270a
Fixed incorrect QM_ASSIGN elimination
...
Fixes OSS Fuzz #60895
2023-07-31 14:50:13 +03:00
Ilija Tovilo
5d90c5057d
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Replace xfail with skipif in calendar_clear_variation1.phpt
2023-07-27 12:30:27 +02:00
Ilija Tovilo
6b6a5cd28e
Replace xfail with skipif in calendar_clear_variation1.phpt
...
Fixes GH-11128
Closes GH-11801
2023-07-27 12:29:49 +02:00
Niels Dossche
9a358b2842
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix DOM test
2023-07-26 18:05:51 +02:00
Niels Dossche
bed0e54104
Fix DOM test
2023-07-26 18:05:24 +02:00
Niels Dossche
86580c6624
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-11791: Wrong default value of DOMDocument::xmlStandalone
2023-07-26 17:23:45 +02:00
Niels Dossche
bf4e7bd3ed
Fix GH-11791: Wrong default value of DOMDocument::xmlStandalone
...
At one point this was changed from a bool to an int in libxml2, with
negative values meaning it is unspecified. Because it is cast to a bool
this therefore returned true instead of the expected false.
Closes GH-11793.
2023-07-26 17:20:10 +02:00
Niels Dossche
e76b62bcb2
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix empty argument cases for DOMParentNode methods
Fix DOMCharacterData::replaceWith() with itself
Fix incorrect attribute existence check in DOMElement::setAttributeNodeNS()
Fix DOMEntity field getter bugs
2023-07-24 19:01:22 +02:00
Niels Dossche
abb1d2e824
Fix empty argument cases for DOMParentNode methods
...
Closes GH-11768.
2023-07-24 18:58:39 +02:00
Niels Dossche
1cf2d216a2
Fix DOMCharacterData::replaceWith() with itself
...
Previously, when replacing the node with itself (or contained within
itself), the node disappeared.
Closes GH-11770.
2023-07-24 18:58:17 +02:00
Niels Dossche
168bc8146f
Fix incorrect attribute existence check in DOMElement::setAttributeNodeNS()
...
Closes GH-11776.
2023-07-24 18:57:16 +02:00
Niels Dossche
d439ee18ed
Fix DOMEntity field getter bugs
...
- publicId could crash PHP if none was provided
- notationName never worked
The fields of this classs were untested. This new test file changes that.
Closes GH-11779.
2023-07-24 18:55:51 +02:00
Dmitry Stogov
d6a795b935
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fixed incorrect QM_ASSIGN elimination
2023-07-24 15:43:21 +03:00
Dmitry Stogov
9fc0eab4b4
Fixed incorrect QM_ASSIGN elimination
...
Fixes OSS Fuzz #60735
2023-07-24 15:42:30 +03:00
Niels Dossche
272dc9a09c
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-11716: cli server crashes on SIGINT when compiled with ZEND_RC_DEBUG=1
2023-07-21 15:31:20 +02:00
Niels Dossche
af77d3b8da
Fix GH-11716: cli server crashes on SIGINT when compiled with ZEND_RC_DEBUG=1
...
Closes GH-11757.
2023-07-21 15:23:56 +02:00
Niels Dossche
31bd62865f
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Prevent int overflow on $decimals in number_format
2023-07-21 13:51:04 +02:00
Marc Bennewitz
429f20e981
Prevent int overflow on $decimals in number_format
...
Closes GH-11714.
Closes GH-11649.
2023-07-21 13:50:18 +02:00
Niels Dossche
404f1d3700
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-11715: opcache.interned_strings_buffer either has no effect or opcache_get_status() / phpinfo() is wrong
2023-07-21 13:09:44 +02:00
Niels Dossche
ee3f932390
Fix GH-11715: opcache.interned_strings_buffer either has no effect or opcache_get_status() / phpinfo() is wrong
...
There are a couple of oddities.
1) The interned strings buffer comprises the whole hashtable
datastructure.
Therefore, it seems that the interned strings buffer size is the size of
only said table. However, in the current code it also includes the size
of the zend_accel_shared_globals.
2) ZCSG(interned_strings).end is computed starting from the accelerator
globals struct itself. I would expect it to start from the part where
the interned strings table starts.
3) When computing the used size, it is done using
ZCSG(interned_strings).end - ZCSG(interned_strings).start. However,
this does not include the uin32_t slots array because
ZCSG(interned_strings).start pointers after that array.
This patch corrrects these 3 points.
Closes GH-11717.
2023-07-21 13:04:53 +02:00
Ilija Tovilo
88fab26365
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix leaking definitions on FFI::cdef()->new()
2023-07-21 10:42:42 +02:00
Ilija Tovilo
11d6bea98a
Fix leaking definitions on FFI::cdef()->new()
...
Previously, FFI_G(symbols) and FFI_G(tags) were never cleaned up when calling
new on an existing object. However, if cdef() is called without parameters these
globals are NULL and might be created when new() creates new definitions. These
would then be discarded without freeing them.
Closes GH-11751
2023-07-21 10:42:19 +02:00
Sergey Panteleev
ad666eb6df
[ci skip] Update NEWS for c3ccc36
...
Fix in Streams moved from 8.2.10 to 8.2.9
2023-07-19 13:35:18 +03:00
Ilija Tovilo
c3ccc363c6
Fix use-after-free when unregistering user stream wrapper from itself
...
Fixes GH-11735
Closes GH-11737
2023-07-19 11:17:57 +02:00
Ben Ramsey
ad01b6e8c4
Merge branch 'PHP-8.1' into PHP-8.2
2023-07-18 16:39:18 -05:00
Ben Ramsey
6e3c520f51
PHP-8.1 is now for PHP-8.1.23-dev
2023-07-18 16:30:49 -05:00
Ilija Tovilo
e8c9c73118
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix hash_pbkdf2 options parameter
2023-07-18 19:23:10 +02:00
Ilija Tovilo
7cae6eb8db
Fix hash_pbkdf2 options parameter
...
The value needs to be initialized to NULL as it is optional. Furthermore, the
parameter was completely missing in the stub signature.
Closes GH-11731
2023-07-18 19:21:13 +02:00
Sergey Panteleev
796a75f967
PHP-8.2 is now for PHP 8.2.10-dev
2023-07-18 14:02:43 +03:00
Niels Dossche
8b1d352ed8
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Prevent potential deadlock if accelerated globals cannot be allocated
2023-07-17 13:00:00 +02:00
Niels Dossche
b0bc057e86
Prevent potential deadlock if accelerated globals cannot be allocated
...
Not sure if this is possible to hit in practice, zend_accel_error_noreturn
doesn't return so the unlock isn't called. Other callsites that use both
zend_accel_error_noreturn and zend_shared_alloc_unlock first perform the
unlocking.
Closes GH-11718.
2023-07-17 12:49:15 +02:00
George Peter Banyard
5f716bf2df
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-11587 PDO::ATTR_STRINGIFY_FETCHES should return strings even in if PDO::ATTR_EMULATE_PREPARES is enabled
2023-07-17 07:09:34 +01:00
SakiTakamachi
e0aadc1c0d
Fix GH-11587 PDO::ATTR_STRINGIFY_FETCHES should return strings even in if PDO::ATTR_EMULATE_PREPARES is enabled
...
This also includes a fix for the MySQL ND driver to actually respect the user decided behaviour.
Closes GH-11622
Signed-off-by: George Peter Banyard <girgias@php.net >
2023-07-17 07:08:45 +01:00
Niels Dossche
f2ed2b877d
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Handle fragments consisting out of multiple children without a single root correctly
2023-07-13 16:12:35 +02:00
Niels Dossche
5c26258eeb
Handle fragments consisting out of multiple children without a single root correctly
...
Closes GH-11698.
2023-07-13 16:09:04 +02:00
David CARLIER
0309800b4d
Merge branch 'PHP-8.1' into PHP-8.2
2023-07-13 12:40:47 +01:00
David Carlier
69b4360e88
zend_gdb disable gdb detection for FreeBSD < 11.
...
ref PR: https://github.com/php/php-src/pull/11599 .
Close GH-11646
2023-07-13 12:39:58 +01:00
George Peter Banyard
1e41b0f1a5
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
ext/intl: Fix memory leak in MessageFormatter::format()
2023-07-12 15:44:41 +01:00
George Peter Banyard
536dbd74fa
ext/intl: Fix memory leak in MessageFormatter::format()
...
Closes GH-11658
2023-07-12 15:43:45 +01:00
Ilija Tovilo
6d98c085a1
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Always memoize assert
2023-07-12 16:36:08 +02:00
Ilija Tovilo
b1b7c61a27
Always memoize assert
...
Closes GH-11686
2023-07-12 16:35:09 +02:00
Ilija Tovilo
57229836d4
Fix bug-gh11600.phpt
2023-07-12 14:54:56 +02:00
Ilija Tovilo
892704267c
[skip ci] Mark bug-gh11600 as xfail
2023-07-12 14:08:28 +02:00
Ilija Tovilo
060df83a98
Fix double-compilation of arrow-function
...
We transform the arrow function by nesting the expression into a return
statement. If we compile the arrow function twice this would be done twice,
leading to a compile assertion.
Fix oss-fuzz #60411
Closes GH-11632
2023-07-12 11:01:23 +02:00
Niels Dossche
9c47f33a5f
Fix bug-gh11600.phpt to work with different ICU versions
2023-07-12 10:35:59 +02:00
Niels Dossche
3552a1be97
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Add regression test for GH-11682
2023-07-11 23:07:17 +02:00
Niels Dossche
48b246e038
Add regression test for GH-11682
...
This bug was already fixed via 15ff830 , but we really need more
test coverage.
Co-authored-by: Arne Blankerts <arne@blankerts.de >
2023-07-11 23:02:01 +02:00
Niels Dossche
832a3d193f
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-10914: OPCache with Enum and Callback functions results in segmentation fault
2023-07-11 17:40:21 +02:00
Niels Dossche
bc42179133
Fix GH-10914: OPCache with Enum and Callback functions results in segmentation fault
...
See linked issue for analysis.
Closes GH-11675.
2023-07-11 17:38:09 +02:00