php-src/ext
Niels Dossche a96b05e63f
Fix GH-19300: Nested array_multisort invocation with error breaks
There are 2 issues:
1. When a MULTISORT_ABORT happens, it frees func, but func may point to
   ARRAYG(multisort_func), which would be a problem with nested
   invocations as it can destroy that of the "parent" invocation.
   To solve this, delay assigning to the globals.
2. The old globals were not restored which means that nested invocations
   with different flags will cause a wrong sorting function to be used.

Closes GH-19319.
2025-07-31 19:00:45 +02:00
..
bcmath Fixed GH-17398: bcmul memory leak (#17615) 2025-01-29 19:12:18 +09:00
bz2
calendar ext/calendar: jewishtojd overflow on year argument. 2025-06-23 11:46:10 +01:00
com_dotnet Merge branch 'PHP-8.2' into PHP-8.3 2024-11-29 16:30:01 +01:00
ctype
curl curl: Remove incorrect string release on error 2025-07-02 18:42:50 +02:00
date Fix leaks with multiple calls to DatePeriod iterator current() 2025-05-26 19:40:41 +02:00
dba ext/dba/tests/gh16390.phpt: skip if inifile is disabled 2024-12-06 19:01:50 +01:00
dl_test Destroy temporary module classes in reverse order 2025-03-14 10:45:17 +01:00
dom Fix deprecation warning for libxml SAX header (#18594) 2025-05-19 19:10:27 +02:00
enchant Fix ext/enchant test SKIPIFs 2025-06-01 18:21:23 +02:00
exif Merge branch 'PHP-8.2' into PHP-8.3 2024-10-13 21:12:46 +02:00
ffi Fix FFI Parsing of Pointer Declaration Lists (#17794) 2025-02-17 10:27:11 +03:00
fileinfo Backport fix for GH-17687 2025-05-27 20:40:35 +02:00
filter Fix GH-18309: ipv6 filter integer overflow 2025-04-11 23:35:00 +02:00
ftp Handle broken hrtime in ftp 2025-07-25 11:56:30 +02:00
gd ext/gd: Fix comparison with result of php_stream_can_cast() 2025-07-28 11:54:19 +01:00
gettext ext/gettext/config.m4: symlink en_US.UTF-8 test bits to en_US for musl 2024-12-19 18:26:35 +01:00
gmp Merge branch 'PHP-8.2' into PHP-8.3 2024-11-27 19:54:06 +00:00
hash Merge branch 'PHP-8.2' into PHP-8.3 2025-07-22 15:52:29 +02:00
iconv Fix iconv tests skipped on windows 2025-06-18 20:47:18 +02:00
imap Merge branch 'PHP-8.1' into PHP-8.2 2025-03-06 15:24:35 +01:00
intl ext/intl: Fix return value on failure for resourcebundle count handler 2025-07-28 15:35:31 +01:00
json Fix tests: Prevent stack overflow during dtor 2024-10-24 15:56:25 +02:00
ldap Skip LDAP TLS max version test for now 2025-07-17 13:44:21 +02:00
libxml Fix GH-19098: libxml<2.13 segmentation fault caused by php_libxml_node_free 2025-07-20 17:19:43 +02:00
mbstring Fix GH-18901: integer overflow mb_split 2025-06-22 13:07:43 +02:00
mysqli Merge branch 'PHP-8.2' into PHP-8.3 2025-03-13 16:47:20 +01:00
mysqlnd Merge branch 'PHP-8.2' into PHP-8.3 2024-11-20 11:12:19 +01:00
oci8 Fix GH-18873 - Free column->descid appropriately (#18957) 2025-07-03 21:09:44 +09:00
odbc Fix memory leak on php_odbc_fetch_hash() failure 2025-06-09 11:24:13 +02:00
opcache Merge branch 'PHP-8.2' into PHP-8.3 2025-07-30 09:23:12 +02:00
openssl Fix error return check of EVP_CIPHER_CTX_ctrl() 2025-07-15 20:37:33 +02:00
pcntl Fix pcntl_rfork / pcntl_forkx with zend-max-execution-timers 2025-06-27 15:46:20 +02:00
pcre Relax test expectation for pcre2lib 10.45 Using e92848789a 2025-03-13 07:46:18 +01:00
pdo Backport fix for GH-17687 2025-05-27 20:40:35 +02:00
pdo_dblib Merge branch 'PHP-8.2' into PHP-8.3 2024-11-20 11:12:19 +01:00
pdo_firebird Fixed GH-18276 - persistent connection - "zend_mm_heap corrupted" with setAttribute() (#18280) 2025-04-15 09:01:40 +09:00
pdo_mysql
pdo_oci Fix GH-18494: PDO OCI segfault in statement GC 2025-05-05 19:30:23 +02:00
pdo_odbc pdo_odbc: Fix memory leak if WideCharToMultiByte() fails 2025-06-09 11:24:48 +02:00
pdo_pgsql ext/pdo_pgsql: Fix _pdo_pgsql_trim_message bad access 2025-07-27 12:54:43 +01:00
pdo_sqlite Fix memory leak when destroying PDORow 2025-03-20 23:13:42 +01:00
pgsql Fix GHSA-hrwm-9436-5mv3: pgsql escaping no error checks 2025-07-01 19:46:48 +03:00
phar [skip ci] Add missing zlib dep to phar compression test 2025-07-07 16:28:18 +02:00
posix Fix FD getting code on big endian (#17259) 2024-12-30 12:40:32 -04:00
pspell
random Fix test failures in engine_unsafe_empty_string.phpt (#18727) 2025-06-01 15:45:36 +02:00
readline Fix bug #51558: shared readline build fails (#15242) 2025-07-27 15:33:48 +02:00
reflection Reflection: show the type of object constants used as default properties 2025-02-21 09:32:10 +01:00
session ext/session: Fix GH-17541 (ext/session NULL pointer dereferencement during ID reset) 2025-01-24 14:04:58 +00:00
shmop
simplexml Fix GH-18304: Changing the properties of a DateInterval through dynamic properties triggers a SegFault 2025-04-11 23:33:58 +02:00
skeleton
snmp Fix GH-18304: Changing the properties of a DateInterval through dynamic properties triggers a SegFault 2025-04-11 23:33:58 +02:00
soap Fix GH-18640: heap-use-after-free ext/soap/php_encoding.c:299:32 in soap_check_zval_ref 2025-07-20 19:49:22 +02:00
sockets ext/socket: Remove incorrect zval_ptr_dtor 2025-07-17 21:50:35 +02:00
sodium
spl Fix GH-19094: Attaching class with no Iterator implementation to MultipleIterator causes crash 2025-07-11 12:27:41 +02:00
sqlite3 Fix GH-13264: fgets() and stream_get_line() do not return false on filter fatal error 2025-06-21 20:13:09 +02:00
standard Fix GH-19300: Nested array_multisort invocation with error breaks 2025-07-31 19:00:45 +02:00
sysvmsg Merge branch 'PHP-8.2' into PHP-8.3 2024-11-03 13:39:41 +00:00
sysvsem
sysvshm Merge branch 'PHP-8.2' into PHP-8.3 2024-10-26 15:07:57 +02:00
tidy ext/tidy: anticipate tidyOptIsReadOnly retirement. 2025-06-04 20:32:21 +01:00
tokenizer
xml Merge branch 'PHP-8.2' into PHP-8.3 2025-07-16 18:26:54 +02:00
xmlreader Fix GH-19098: libxml<2.13 segmentation fault caused by php_libxml_node_free 2025-07-20 17:19:43 +02:00
xmlwriter Backport 4fe82131: Backport libxml2 2.13.2 fixes (#14816) 2024-10-12 15:12:40 +02:00
xsl Backport e2d97314: Backport deprecation warning ignores to unbreak CI 2024-10-12 15:12:40 +02:00
zend_test Do not delete main chunk in zend_gc 2025-06-09 11:23:29 +02:00
zip Fix leak when path is too long in ZipArchive::extractTo() 2025-07-02 18:43:25 +02:00
zlib Fix zlib support for large files 2025-02-14 23:09:57 +01:00
ext_skel.php