Fixed bug #41919 (crash in string to array conversion)

This commit is contained in:
Ilia Alshanetsky 2007-07-08 15:28:46 +00:00
parent a1fdbe88a6
commit aeaf26b86d
2 changed files with 14 additions and 0 deletions

2
NEWS
View file

@ -48,6 +48,8 @@ PHP NEWS
- Fixed PECL bug #11216 (crash in ZipArchive::addEmptyDir when a directory - Fixed PECL bug #11216 (crash in ZipArchive::addEmptyDir when a directory
already exists). (Pierre) 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). - Fixed bug #41908 (CFLAGS="-Os" ./configure --enable-debug fails).
(christian at hoffie dot info, Tony) (christian at hoffie dot info, Tony)
- Fixed bug #41909 (var_export() is locale sensitive when exporting float - Fixed bug #41909 (var_export() is locale sensitive when exporting float

12
Zend/tests/bug41919.phpt Normal file
View file

@ -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