ru_php/Zend/tests/exit/define_exit_function_namespace.phpt

13 lines
212 B
Plaintext
Raw Permalink Normal View History

--TEST--
Attempting to define exit() function in a namespace
--FILE--
<?php
namespace Foo;
function exit() { }
?>
--EXPECTF--
Parse error: syntax error, unexpected token "exit", expecting "(" in %s on line %d