]> granicus.if.org Git - php/commitdiff
Fixed bug #41919 (crash in string to array conversion)
authorIlia Alshanetsky <iliaa@php.net>
Sun, 8 Jul 2007 15:28:46 +0000 (15:28 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Sun, 8 Jul 2007 15:28:46 +0000 (15:28 +0000)
NEWS
Zend/tests/bug41919.phpt [new file with mode: 0644]

diff --git a/NEWS b/NEWS
index 225cb430218c7b3cf8bf052e12ef496bac87f8f1..31b5aacbf8b7860f954fa8c074350e29c330a750 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -48,6 +48,8 @@ PHP                                                                        NEWS
 - Fixed PECL bug #11216 (crash in ZipArchive::addEmptyDir when a directory 
   already exists). (Pierre)
 
+- Fixed bug #41919 (crash in string to array conversion). (judas dot
+  iscariote at gmail dot com, Ilia)
 - Fixed bug #41908 (CFLAGS="-Os" ./configure --enable-debug fails). 
   (christian at hoffie dot info, Tony) 
 - Fixed bug #41909 (var_export() is locale sensitive when exporting float
diff --git a/Zend/tests/bug41919.phpt b/Zend/tests/bug41919.phpt
new file mode 100644 (file)
index 0000000..127eb97
--- /dev/null
@@ -0,0 +1,12 @@
+--TEST--
+Bug #41919 (crash in string to array conversion)
+--FILE--
+<?php
+$foo="50";
+$foo[3]->bar[1] = "bang";
+
+echo "ok\n";
+?>
+--EXPECTF--
+Warning: Cannot use string offset as an array in %s/bug41919.php on line %d
+ok