dis-bench / src /php /php-src /ext /opcache /tests /opt /gh10801.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
468 Bytes
--TEST--
GH-10801 (Named arguments in CTE functions cause a segfault)
--INI--
opcache.enable=1
opcache.enable_cli=1
opcache.optimization_level=0xe0
--EXTENSIONS--
opcache
--FILE--
<?php
// Named argument case and does not do CTE as expected
print_r(array_keys(array: [1 => 1], strict: true, filter_value: 0));
// Will not use named arguments and do CTE as expected
print_r(array_keys(array: [1 => 1], filter_value: 0, strict: true));
?>
--EXPECT--
Array
(
)
Array
(
)