xref: /PHP-8.3/ext/opcache/tests/opt/gh10801.phpt (revision 2c53d631)
1--TEST--
2GH-10801 (Named arguments in CTE functions cause a segfault)
3--INI--
4opcache.enable=1
5opcache.enable_cli=1
6opcache.optimization_level=0xe0
7--EXTENSIONS--
8opcache
9--FILE--
10<?php
11// Named argument case and does not do CTE as expected
12print_r(array_keys(array: [1 => 1], strict: true, filter_value: 0));
13// Will not use named arguments and do CTE as expected
14print_r(array_keys(array: [1 => 1], filter_value: 0, strict: true));
15?>
16--EXPECT--
17Array
18(
19)
20Array
21(
22)
23