php-src/ext
Niels Dossche 2c53d63197 Fix GH-10801: Named arguments in CTE functions cause a segfault
Fixes GH-10801

Named arguments are not supported by the constant evaluation routine, in
the sense that they are ignored. This causes two issues:
  - It causes a crash because not all oplines belonging to the call are
    removed, which results in SEND_VA{L,R} which should've been removed.
  - It causes semantic issues (demonstrated in the test case).

This case never worked anyway, leading to crashes or incorrect behaviour,
so just prevent CTE of calls with named parameters for now.
We can choose to support it later, but introducing support for this in
a stable branch seems too dangerous.

This patch does not change the removal of SEND_* opcodes in remove_call
because the crash bug can't be triggered anymore with this patch as
there are no named parameters anymore and no variadic CTE functions
exist.

Closes GH-10811.
2023-03-10 19:22:44 +01:00
..
bcmath
bz2 Merge branch 'PHP-8.0' into PHP-8.1 2022-06-25 07:39:55 +01:00
calendar Add more specific array return type hints for various extensions - part 1 2021-11-07 08:46:25 +01:00
com_dotnet Merge branch 'PHP-8.0' into PHP-8.1 2022-06-18 11:50:14 +02:00
ctype
curl Fixed bug GH-10270 Unable to return CURL_READFUNC_PAUSE in readfunc callback 2023-02-24 14:32:23 +00:00
date Fixed GH-10447: 'p' format specifier does not yield 'Z' for 00:00 2023-01-31 12:58:21 +00:00
dba Merge branch 'PHP-8.0' into PHP-8.1 2022-07-27 12:13:32 +02:00
dl_test Fix unregistering ini entries of dynamically loaded extension (#8435) 2022-05-06 15:25:44 +02:00
dom Merge branch 'PHP-8.0' into PHP-8.1 2023-02-12 21:33:39 -07:00
enchant Add more specific array return type hints for various extensions - part 1 2021-11-07 08:46:25 +01:00
exif Fix GH-8408: bug68547.phpt fails without multibyte support 2022-04-20 16:42:09 +02:00
ffi Fix assertion failure when var_dump'ing void FFI result (#10568) 2023-02-13 22:38:28 +03:00
fileinfo fileinfo: tests: Disable times sensitive tests on debug build 2022-09-25 20:43:31 +02:00
filter Add missing EXTENSION section to tests 2022-10-27 14:39:43 +01:00
ftp ext/ftp fix ftp_nb_get signature (for failure). 2023-03-03 21:08:16 +00:00
gd Add Windows GitHub actions build 2023-03-01 23:02:03 +01:00
gettext
gmp Merge branch 'PHP-8.0' into PHP-8.1 2022-09-13 11:33:09 +01:00
hash Handle exceptions from __toString in XXH3's initialization 2023-01-17 14:14:12 +00:00
iconv Merge branch 'PHP-8.0' into PHP-8.1 2022-04-25 14:29:44 +02:00
imap Fix GH-9309: Segfault when connection is used after imap_close() 2022-08-12 16:24:30 +02:00
intl Fix GH-10647: Spoofchecker isSuspicious/areConfusable methods 2023-02-21 21:00:49 +00:00
json Fix php_json_scanner_defs.h target in ext/json/Makefile.frag 2023-02-17 16:37:14 +00:00
ldap Fix GH-10112: LDAP\Connection::__construct() refers to ldap_create() 2022-12-16 14:36:30 +01:00
libxml Merge branch 'PHP-8.0' into PHP-8.1 2022-08-25 15:11:41 +02:00
mbstring mb_encode_mimeheader does not crash if provided encoding has no MIME name set 2023-03-07 11:30:21 +02:00
mysqli ext/mysqli tests "using password" optional in error messages (part 2) 2022-12-08 14:23:33 +01:00
mysqlnd Merge branch 'PHP-8.0' into PHP-8.1 2022-10-27 18:31:38 +01:00
oci8 Skip some OCI tests with repeat 2022-09-27 23:32:15 +02:00
odbc Merge branch 'PHP-8.0' into PHP-8.1 2022-06-13 14:43:51 +02:00
opcache Fix GH-10801: Named arguments in CTE functions cause a segfault 2023-03-10 19:22:44 +01:00
openssl Add missing error check on PEM_write_bio_PKCS7() 2023-03-05 22:07:43 +01:00
pcntl fix: support for timeouts with ZTS on Linux (#10141) 2023-03-03 11:35:06 +01:00
pcre Fix pcre.jit on Apple Silicon 2022-08-31 14:22:44 +02:00
pdo Improve fix for bug #81740 2022-12-18 23:20:29 -07:00
pdo_dblib Merge branch 'PHP-8.0' into PHP-8.1 2022-08-26 14:59:08 +02:00
pdo_firebird Fix GH-9971: Incorrect NUMERIC value returned from PDO_Firebird 2022-11-30 12:11:42 +01:00
pdo_mysql Merge branch 'PHP-8.0' into PHP-8.1 2022-05-03 12:43:14 +02:00
pdo_oci Fix PDO OCI Bug #60994 (Reading a multibyte CLOB caps at 8192 chars) 2023-02-07 09:25:34 -06:00
pdo_odbc Merge branch 'PHP-8.0' into PHP-8.1 2022-06-13 14:43:51 +02:00
pdo_pgsql Merge branch 'PHP-8.0' into PHP-8.1 2022-09-05 17:26:13 +02:00
pdo_sqlite Force extension loading for new test 2022-12-19 16:14:00 +01:00
pgsql Fix GH-10672 (pg_lo_open segfaults in the strict_types mode) 2023-02-24 14:31:23 +00:00
phar Add missing error checks on EVP_MD_CTX_create() and EVP_VerifyInit() 2023-03-05 22:05:11 +01:00
posix Fix GH-10202: posix_getgr(gid|nam)_basic.phpt fail 2023-01-02 16:54:47 +00:00
pspell
readline
reflection Fix segfault when using ReflectionFiber (fixes #10439) 2023-02-23 23:20:27 +01:00
session Propagate errors correctly in ps_files_cleanup_dir() 2023-02-21 16:09:22 +00:00
shmop
simplexml Fix the value param of SimpleXMLElement::addAttribute() 2021-12-22 12:35:59 +01:00
skeleton
snmp Fix bug #81598: Use C.UTF-8 as LC_CTYPE locale by default 2021-12-05 21:03:27 +01:00
soap Merge branch 'PHP-8.0' into PHP-8.1 2022-10-13 16:00:36 +02:00
sockets Merge branch 'PHP-8.0' into PHP-8.1 2022-10-01 11:23:34 +02:00
sodium Remove extra space before return type 2021-10-18 14:28:46 +02:00
spl Fix GH-10519: Array Data Address Reference Issue 2023-03-10 14:23:30 +00:00
sqlite3 Fix #81742: open_basedir bypass in SQLite3 by using file URI 2022-12-06 15:59:52 +01:00
standard fix: support for timeouts with ZTS on Linux (#10141) 2023-03-03 11:35:06 +01:00
sysvmsg
sysvsem
sysvshm Add Windows GitHub actions build 2023-03-01 23:02:03 +01:00
tidy Fix Tidy tests failing due to different spelling 2023-02-21 14:32:39 +00:00
tokenizer Add missing EXTENSION section to tests 2022-10-27 14:39:43 +01:00
xml The userland constants do not start with PHP_ 2023-02-26 14:18:12 +00:00
xmlreader Merge branch 'PHP-8.0' into PHP-8.1 2023-02-12 21:33:39 -07:00
xmlwriter Fix missing check for xmlTextWriterEndElement 2023-01-15 15:34:43 +00:00
xsl
zend_test Fixed strict zpp arginfo test 2023-03-09 12:20:56 +00:00
zip Merge branch 'PHP-8.0' into PHP-8.1 2022-06-15 15:39:00 +02:00
zlib Fix incorrect string length for output_handler in zlib ini code 2023-02-23 18:47:26 +00:00
ext_skel.php