summaryrefslogtreecommitdiff
path: root/tests/lang/bug29944.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/bug29944.phpt')
-rwxr-xr-xtests/lang/bug29944.phpt20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/lang/bug29944.phpt b/tests/lang/bug29944.phpt
deleted file mode 100755
index 7882936f08..0000000000
--- a/tests/lang/bug29944.phpt
+++ /dev/null
@@ -1,20 +0,0 @@
---TEST--
-Bug #29944 (function defined in switch crashes PHP)
---FILE--
-<?PHP
-$a = 1;
-$b = "1";
-switch ($a) {
- case 1:
- function foo($bar) {
- if (preg_match('/\d/', $bar)) return true;
- return false;
- }
- echo foo($b);
-}
-?>
-
-===DONE===
---EXPECT--
-1
-===DONE===