com php-src: Forgot to add test...: Zend/tests/function_redec l.phpt
| From: | Bob Weinand | Date: | Wed, 21 Jan 2015 22:54:03 +0000 |
| Subject: | com php-src: Forgot to add test...: Zend/tests/function_redec l.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-84295@lists.php.net to get a copy of this message | ||
Commit: 4e0ae4dbbc2f52d5df6912c3b02ba634dee20e3d
Author: Bob Weinand <bobwei9@hotmail.com> Wed, 21 Jan 2015 23:54:03 +0100
Parents: bd629428a6baa9a7a95726b05d5d5d5c4dcf5423
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4e0ae4dbbc2f52d5df6912c3b02ba634dee20e3d
Log:
Forgot to add test...
Changed paths:
A Zend/tests/function_redecl.phpt
Diff:
diff --git a/Zend/tests/function_redecl.phpt b/Zend/tests/function_redecl.phpt
new file mode 100644
index 0000000..4c13954
--- /dev/null
+++ b/Zend/tests/function_redecl.phpt
@@ -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