summaryrefslogtreecommitdiff
path: root/Zend/tests/function_redecl.phpt
blob: 4c1395472fc6a7b69194862ecaf94f95bc8f4cd1 (plain)
1
2
3
4
5
6
7
8
9
--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