mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
17 lines
319 B
PHP
17 lines
319 B
PHP
--TEST--
|
|
GH-16515: Incorrect propagation of ZEND_ACC_RETURN_REFERENCE for call trampoline
|
|
--FILE--
|
|
<?php
|
|
|
|
namespace Foo;
|
|
|
|
class Foo {
|
|
public function &__call($method, $args) {}
|
|
}
|
|
|
|
call_user_func((new Foo)->bar(...));
|
|
|
|
?>
|
|
--EXPECTF--
|
|
Notice: Only variable references should be returned by reference in %s on line %d
|