]> granicus.if.org Git - php/commitdiff
add testcase for bug #29893
authorAntony Dovgal <tony2001@php.net>
Mon, 30 Aug 2004 09:07:17 +0000 (09:07 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 30 Aug 2004 09:07:17 +0000 (09:07 +0000)
tests/lang/bug29893.phpt [new file with mode: 0755]

diff --git a/tests/lang/bug29893.phpt b/tests/lang/bug29893.phpt
new file mode 100755 (executable)
index 0000000..d320de0
--- /dev/null
@@ -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===