php-src/Zend/tests/indirect_call_array_001.phpt
2020-07-10 21:05:28 +02:00

15 lines
231 B
PHP

--TEST--
Indirect method call by array - Invalid class name
--FILE--
<?php
$arr = array('a', 'b');
$arr();
?>
--EXPECTF--
Fatal error: Uncaught Error: Class "a" not found in %s:%d
Stack trace:
#0 {main}
thrown in %s on line %d