php-src/Zend/tests/indirect_call_array_002.phpt

15 lines
258 B
PHP

--TEST--
Indirect method call by array - Invalid method name
--FILE--
<?php
$arr = array('stdclass', 'b');
$arr();
?>
--EXPECTF--
Fatal error: Uncaught Error: Call to undefined method stdClass::b() in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d