summaryrefslogtreecommitdiff
path: root/tests/lang/bug29893.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lang/bug29893.phpt')
-rw-r--r--tests/lang/bug29893.phpt11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/lang/bug29893.phpt b/tests/lang/bug29893.phpt
new file mode 100644
index 0000000..d320de0
--- /dev/null
+++ b/tests/lang/bug29893.phpt
@@ -0,0 +1,11 @@
+--TEST--
+Bug #29893 (segfault when using array as index)
+--FILE--
+<?php
+$base = 50;
+$base[$base] -= 0;
+?>
+===DONE===
+--EXPECTF--
+Warning: Cannot use a scalar value as an array in %sbug29893.php on line %d
+===DONE===