1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/opcache/tests/bug79475.phpt
Christoph M. Becker a1eaaa692e Fix #79475: [JIT] func_get_args() assertion violation
`func_get_args()` may return `zend_empty_array`, which has refcount 2
to enforce separation.   We have to cater to that during type inference
so that the optimization in the JIT macro `SEPARATE_ARRAY` doesn't
prevent the separation.
2020-04-17 09:53:23 +02:00

16 lines
237 B
PHP

--TEST--
Bug #79475 ([JIT] func_get_args() assertion violation)
--SKIPIF--
<?php require_once('skipif.inc'); ?>
--FILE--
<?php
function foo() {
$args = func_get_args();
$args[] = "bar";
}
foo();
echo "done\n";
?>
--EXPECT--
done