diff options
author | Antony Dovgal <tony2001@php.net> | 2004-08-30 09:07:17 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2004-08-30 09:07:17 +0000 |
commit | 513c93b9ae8d7b0fdc92019a895d494417305d0a (patch) | |
tree | 759903d15916809a3ceb3c2d7ca8a3bff5449ab7 /tests | |
parent | 4f68f3774c34948ac651344d73c9d9e0a08801e6 (diff) | |
download | php-git-513c93b9ae8d7b0fdc92019a895d494417305d0a.tar.gz |
add testcase for bug #29893
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/lang/bug29893.phpt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/lang/bug29893.phpt b/tests/lang/bug29893.phpt new file mode 100755 index 0000000000..d320de0ee7 --- /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=== |