php-src/Zend/tests/function_redecl.phpt
2015-01-21 23:54:03 +01:00

10 lines
204 B
PHP

--TEST--
Function redeclaration must produce a simple fatal
--FILE--
<?php
function f() {}
function f() {}
?>
--EXPECTF--
Fatal error: Cannot redeclare f() (previously declared in %s:%d) in %s on line %d