mirror of
https://github.com/php/php-src.git
synced 2026-03-26 09:12:14 +01:00
`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.
16 lines
237 B
PHP
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
|