]> granicus.if.org Git - php/commitdiff
add test
authorAntony Dovgal <tony2001@php.net>
Wed, 27 Jun 2007 08:55:27 +0000 (08:55 +0000)
committerAntony Dovgal <tony2001@php.net>
Wed, 27 Jun 2007 08:55:27 +0000 (08:55 +0000)
Zend/tests/bug41813.phpt [new file with mode: 0644]

diff --git a/Zend/tests/bug41813.phpt b/Zend/tests/bug41813.phpt
new file mode 100644 (file)
index 0000000..c330b14
--- /dev/null
@@ -0,0 +1,12 @@
+--TEST--
+Bug #41813 (segmentation fault when using string offset as an object)
+--FILE--
+<?php
+
+$foo = "50";
+$foo[0]->bar = "xyz";
+
+echo "Done\n";
+?>
+--EXPECTF--    
+Fatal error: Cannot use string offset as an array in %s on line %d