From aeaf26b86d90d2009aa89ca7ed326994c72f1458 Mon Sep 17 00:00:00 2001 From: Ilia Alshanetsky Date: Sun, 8 Jul 2007 15:28:46 +0000 Subject: [PATCH] Fixed bug #41919 (crash in string to array conversion) --- NEWS | 2 ++ Zend/tests/bug41919.phpt | 12 ++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 Zend/tests/bug41919.phpt 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 -- 2.40.0