]> granicus.if.org Git - php/commitdiff
Forgot to add test...
authorBob Weinand <bobwei9@hotmail.com>
Wed, 21 Jan 2015 22:54:03 +0000 (23:54 +0100)
committerBob Weinand <bobwei9@hotmail.com>
Wed, 21 Jan 2015 22:54:03 +0000 (23:54 +0100)
Zend/tests/function_redecl.phpt [new file with mode: 0644]

diff --git a/Zend/tests/function_redecl.phpt b/Zend/tests/function_redecl.phpt
new file mode 100644 (file)
index 0000000..4c13954
--- /dev/null
@@ -0,0 +1,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