From: Ilia Alshanetsky Date: Sun, 8 Jul 2007 15:28:46 +0000 (+0000) Subject: Fixed bug #41919 (crash in string to array conversion) X-Git-Tag: php-5.2.4RC1~220 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aeaf26b86d90d2009aa89ca7ed326994c72f1458;p=php Fixed bug #41919 (crash in string to array conversion) --- diff --git a/NEWS b/NEWS index 225cb43021..31b5aacbf8 100644 --- 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 index 0000000000..127eb97bc1 --- /dev/null +++ b/Zend/tests/bug41919.phpt @@ -0,0 +1,12 @@ +--TEST-- +Bug #41919 (crash in string to array conversion) +--FILE-- +bar[1] = "bang"; + +echo "ok\n"; +?> +--EXPECTF-- +Warning: Cannot use string offset as an array in %s/bug41919.php on line %d +ok