ru_php/ext/zend_test/tests/gh22175.phpt

19 lines
329 B
PHP

--TEST--
GH-22175: zend_call_method_if_exists() must unref return value
--CREDITS--
YuanchengJiang
--EXTENSIONS--
zend_test
--FILE--
<?php
class Foo {
public function &test() {}
}
zend_call_method_if_exists(new Foo, 'test');
?>
--EXPECTF--
Notice: Only variable references should be returned by reference in %s on line %d