php-src/Zend/tests/dynamic_fully_qualified_call.phpt

16 lines
245 B
Plaintext
Raw Normal View History

2016-05-01 19:04:08 +08:00
--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()