]> granicus.if.org Git - php/commitdiff
MFH: Test case for bug #24773.
authorIlia Alshanetsky <iliaa@php.net>
Wed, 3 Dec 2003 23:00:36 +0000 (23:00 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Wed, 3 Dec 2003 23:00:36 +0000 (23:00 +0000)
tests/lang/bug24773.phpt [new file with mode: 0644]

diff --git a/tests/lang/bug24773.phpt b/tests/lang/bug24773.phpt
new file mode 100644 (file)
index 0000000..c0bb632
--- /dev/null
@@ -0,0 +1,9 @@
+--TEST--
+Bug #24773 (unset() of integers treated as arrays causes a crash)
+--FILE--
+<?php
+       $array = 'test';
+       unset($array["lvl1"]["lvl2"]["b"]);
+?>
+--EXPECTF--
+Fatal error: Cannot unset string offsets in %s on line %d