Skip to content

Commit aeaf26b

Browse files
author
Ilia Alshanetsky
committed
Fixed bug #41919 (crash in string to array conversion)
1 parent a1fdbe8 commit aeaf26b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

NEWS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ PHP NEWS
4848
- Fixed PECL bug #11216 (crash in ZipArchive::addEmptyDir when a directory
4949
already exists). (Pierre)
5050

51+
- Fixed bug #41919 (crash in string to array conversion). (judas dot
52+
iscariote at gmail dot com, Ilia)
5153
- Fixed bug #41908 (CFLAGS="-Os" ./configure --enable-debug fails).
5254
(christian at hoffie dot info, Tony)
5355
- Fixed bug #41909 (var_export() is locale sensitive when exporting float

Zend/tests/bug41919.phpt

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
--TEST--
2+
Bug #41919 (crash in string to array conversion)
3+
--FILE--
4+
<?php
5+
$foo="50";
6+
$foo[3]->bar[1] = "bang";
7+
8+
echo "ok\n";
9+
?>
10+
--EXPECTF--
11+
Warning: Cannot use string offset as an array in %s/bug41919.php on line %d
12+
ok

0 commit comments

Comments
 (0)