]> granicus.if.org Git - php/commitdiff
This commit was manufactured by cvs2svn to create branch 'PHP_4_3'.
authorSVN Migration <svn@php.net>
Mon, 30 Aug 2004 09:07:18 +0000 (09:07 +0000)
committerSVN Migration <svn@php.net>
Mon, 30 Aug 2004 09:07:18 +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===