Arnaud Le Blanc
7a617ee223
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
[ci skip] NEWS
Fix segfault caused by weak references to FFI objects (#12488 )
2023-10-28 15:03:17 +02:00
Arnaud Le Blanc
bbfadd32e8
[ci skip] NEWS
2023-10-28 15:02:20 +02:00
sji
04b35a44ce
Fix segfault caused by weak references to FFI objects ( #12488 )
...
Thank you!
2023-10-28 14:59:06 +02:00
Niels Dossche
1ea8a10ca8
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-11374: Different preg_match result with -d pcre.jit=0
2023-10-27 17:44:56 +02:00
Michael Voříšek
83a505e85f
Fix GH-11374: Different preg_match result with -d pcre.jit=0
...
This is a backport of https://github.com/PCRE2Project/pcre2/pull/300 .
Closes GH-12439.
2023-10-27 17:43:33 +02:00
Dmitry Stogov
770c1b0361
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fixed GH-12509: JIT assertion when running php-parser tests
2023-10-26 23:59:03 +03:00
Dmitry Stogov
5f46d86955
Fixed GH-12509: JIT assertion when running php-parser tests
2023-10-26 23:58:29 +03:00
Niels Dossche
e39538bed0
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix bug #75306 : Memleak in SoapClient
2023-10-26 19:59:00 +02:00
Niels Dossche
27797a26ca
Fix bug #75306 : Memleak in SoapClient
...
Setting the stream context via php_stream_context_to_zval() will
increase the reference count. So if the new context is created, then it
will end up with a reference count of 2 while it should be 1.
Credits to cmb for the analysis. I arrived at the same patch as he did.
Closes GH-12523.
2023-10-26 19:58:31 +02:00
Niels Dossche
07de4b69d4
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix incorrect dtor for persistent sdl->encoders
2023-10-25 17:54:46 +02:00
Niels Dossche
9f7f3b2034
Fix incorrect dtor for persistent sdl->encoders
...
Closes GH-12515.
2023-10-25 17:53:42 +02:00
Dmitry Stogov
76724fc4ac
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fixed regression intoduced by 76c41d27f9
2023-10-25 15:15:39 +03:00
Dmitry Stogov
fbf4e196da
Fixed regression intoduced by 76c41d27f9
2023-10-25 15:15:13 +03:00
Niels Dossche
dd8a945eb7
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
[ci skip] NEWS
Fix null pointer dereferences in case of allocation failure
2023-10-24 19:36:57 +02:00
Niels Dossche
98908db72b
[ci skip] NEWS
2023-10-24 19:35:55 +02:00
icy17
900f0cab9f
Fix null pointer dereferences in case of allocation failure
...
Closes GH-12506.
2023-10-24 19:34:47 +02:00
Dmitry Stogov
7320f33f7f
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fixed incorrect type inference
2023-10-24 18:48:58 +03:00
Dmitry Stogov
aa45df4849
Fixed incorrect type inference
2023-10-24 18:48:29 +03:00
Dmitry Stogov
9668077f6b
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fixed GH-12482: Abortion with tracing JIT
2023-10-24 14:21:06 +03:00
Dmitry Stogov
76c41d27f9
Fixed GH-12482: Abortion with tracing JIT
2023-10-24 14:20:35 +03:00
Dmitry Stogov
fed7937d27
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
memory_consumption must be page aligned
2023-10-23 12:10:54 +03:00
Dmitry Stogov
e270ee3008
memory_consumption must be page aligned
2023-10-23 12:10:11 +03:00
Dmitry Stogov
6be3c18d38
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fixed GH-12494: Zend/tests/arginfo_zpp_mismatch.phpt causes a segfault withJIT + --repeat 2
2023-10-23 10:51:48 +03:00
Dmitry Stogov
e0ca4dca5b
Fixed GH-12494: Zend/tests/arginfo_zpp_mismatch.phpt causes a segfault withJIT + --repeat 2
2023-10-23 10:50:55 +03:00
Jakub Zelenka
006032b6f0
Fix failing test for bug #75708
2023-10-22 15:31:00 +01:00
Jakub Zelenka
275d36ea2f
Merge branch 'PHP-8.1' into PHP-8.2
2023-10-22 13:27:19 +01:00
Jakub Zelenka
52aa0d9ecc
Fix bug #75708 : getimagesize with "&$imageinfo" fails on StreamWrappers
...
Closes GH-12444
2023-10-22 13:26:18 +01:00
Jakub Zelenka
b2f6b6ea9c
Merge branch 'PHP-8.1' into PHP-8.2
2023-10-22 13:21:56 +01:00
Jakub Zelenka
83a242ec0c
Fix GH-12489: Missing sigbio creation checking in openssl_cms_verify
...
Closes GH-12490
2023-10-22 13:20:43 +01:00
Niels Dossche
1b16646270
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix segfault and assertion failure with refcounted props and arrays
Fix incorrect uri check in SOAP caching
Fix bug #66150 : SOAP WSDL cache race condition causes Segmentation Fault
2023-10-19 18:32:01 +02:00
Niels Dossche
01d61605d3
Fix segfault and assertion failure with refcounted props and arrays
...
Closes GH-12478.
2023-10-19 18:31:48 +02:00
Niels Dossche
deebb68612
Fix segfault and assertion failure with refcounted props and arrays
...
Closes GH-12478.
2023-10-19 18:29:13 +02:00
Niels Dossche
abf562c417
Fix incorrect uri check in SOAP caching
...
If i == 0 then the check will compare 0 bytes.
We are supposed to check if the uri is identical.
Closes GH-12479.
2023-10-19 18:29:11 +02:00
Niels Dossche
43e63168e9
Fix bug #66150 : SOAP WSDL cache race condition causes Segmentation Fault
...
When we have two processes both trying to cache a WSDL, they might start
writing the data to the same temporary file, causing file corruption due
to the race condition. Fix this by creating a temporary file first, and
then moving it to the final location. If moving fails then we know
another process finished caching first.
This also fixes #67617 as a consequence of its implementation.
Closes GH-12469.
2023-10-19 18:27:38 +02:00
Ilija Tovilo
4f1f77c51b
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix double-free of doc_comment when overriding static property via trait
2023-10-19 15:23:00 +02:00
Ilija Tovilo
af3d2f7ec9
Fix double-free of doc_comment when overriding static property via trait
...
When redeclaring an overridden static property with a trait we're removing the
property from the class. However, because the property itself does not belong to
the class we must not free its associated data.
This issue is exposed by 9a250cc9d6 in PHP 8.3+ because duplicate static
properties in traits are no longer skipped, but redeclared.
Fixes GH-12468
2023-10-19 15:21:53 +02:00
SakiTakamachi
736032febf
Fixed a bug in zend_memnistr with single character needle
...
Fixes GH-12457
Closes GH-12458
2023-10-18 16:00:49 +02:00
Ilija Tovilo
e3a6dc123d
[skip ci] Set travis_wait timeout to 60m
...
This was already done for master, but for some reason not for lower branches.
2023-10-18 15:37:12 +02:00
Ilija Tovilo
b49e178563
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Avoid JIT warning with opcache.jit_buffer_size=0
2023-10-18 10:49:07 +02:00
Ilija Tovilo
07d81592e9
Avoid JIT warning with opcache.jit_buffer_size=0
...
Closes GH-12460
2023-10-18 10:46:30 +02:00
Dmitry Stogov
ef91794264
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fixed GH-11917: primitives seem to be passed via reference instead of by value under some conditions when JIT is enabled on windows (#12451 )
2023-10-17 01:58:36 +03:00
Dmitry Stogov
89eb1c64a9
Fixed GH-11917: primitives seem to be passed via reference instead of by value under some conditions when JIT is enabled on windows ( #12451 )
2023-10-17 01:58:07 +03:00
Dmitry Stogov
0c6999cf94
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fixed GH-12428: Assertion with function/tracing JIT
2023-10-16 15:12:29 +03:00
Dmitry Stogov
dabced0fbb
Fixed GH-12428: Assertion with function/tracing JIT
2023-10-16 15:11:56 +03:00
Niels Dossche
428ecf48ef
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Add missing module dependency for xsl
2023-10-15 21:53:37 +02:00
Niels Dossche
68aa793173
Add missing module dependency for xsl
...
This module cannot work without the DOM extension.
Closes GH-12441.
2023-10-15 21:52:47 +02:00
Jakub Zelenka
c776f79578
Merge branch 'PHP-8.1' into PHP-8.2
2023-10-14 18:41:48 +01:00
Jakub Zelenka
0217be4d5b
Fix GH-12232: FPM: segfault dynamically loading extension without opcache
...
Also fixes incorrect assertion in ini init that php_dl is always
temporary.
Closes GH-12277
2023-10-14 18:38:21 +01:00
Niels Dossche
a025e6c780
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix registerNodeClass with abstract class crashing
2023-10-13 19:08:13 +02:00
Niels Dossche
d7de0ceca6
Fix registerNodeClass with abstract class crashing
...
This always results in a segfault when trying to instantiate, so this never
worked. At least throw an error instead of segfaulting to prevent developers
from being confused.
Closes GH-12420.
2023-10-13 19:06:09 +02:00