summaryrefslogtreecommitdiff
path: root/Zend/tests/bug54585.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'Zend/tests/bug54585.phpt')
-rw-r--r--Zend/tests/bug54585.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/Zend/tests/bug54585.phpt b/Zend/tests/bug54585.phpt
new file mode 100644
index 000000000..2ca11f3e6
--- /dev/null
+++ b/Zend/tests/bug54585.phpt
@@ -0,0 +1,15 @@
+--TEST--
+Bug #54585 (track_errors causes segfault)
+--INI--
+track_errors=On
+--FILE--
+<?php
+function testing($source) {
+ unset($source[$cos]);
+}
+testing($_GET);
+echo "ok\n";
+?>
+--EXPECTF--
+Notice: Undefined variable: cos in %sbug54585.php on line 3
+ok