php-src/Zend/tests/dynamic_fully_qualified_call.phpt
2016-05-01 13:05:14 +02:00

16 lines
245 B
PHP

--TEST--
Crash when using dynamic call syntax with fully qualified name in a namespace
--FILE--
<?php
namespace Foo;
try {
('\bar')();
} catch (\Error $e) {
echo $e->getMessage(), "\n";
}
?>
--EXPECT--
Call to undefined function bar()