mirror of
https://github.com/php/php-src.git
synced 2025-08-18 06:58:55 +02:00
Fixed bug #41919 (crash in string to array conversion)
This commit is contained in:
parent
a1fdbe88a6
commit
aeaf26b86d
2 changed files with 14 additions and 0 deletions
2
NEWS
2
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
|
||||
|
|
12
Zend/tests/bug41919.phpt
Normal file
12
Zend/tests/bug41919.phpt
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue