#35488 [Opn->Bgs]: serialize() segmentation fault (works with PHP 5.1)
| From: | sniper@php.net | Date: | Sat, 24 Dec 2005 01:11:58 +0000 |
| Subject: | #35488 [Opn->Bgs]: serialize() segmentation fault (works with PHP 5.1) | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-90961@lists.php.net to get a copy of this message | ||
ID: 35488
Updated by: sniper@php.net
Reported By: kenashkov at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Strings related
Operating System: Fedora Core 4
PHP Version: 4.4.1
New Comment:
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same.
Thank you for your interest in PHP.
Previous Comments:
------------------------------------------------------------------------
[2005-12-04 19:02:59] lsmith@php.net
Probably a dube of http://bugs.php.net/bug.php?id=35277
------------------------------------------------------------------------
[2005-11-30 13:58:20] kenashkov at gmail dot com
Description:
------------
Segmentation fault when serializing multidimentional recursive arrays.
The code below works fine with 4.3.11 (again on FC4).
When the argument is passend by reference (which is deprecated):
print_r(unserialize(serialize(&$arr1)));
it is fine.
Or passing a reference:
print_r(unserialize(serialize($ref=&$arr1)));
also works.
No problem with serializing just $arr1[0]=&$arr;
Reproduce code:
---------------
<?
$arr1[0][0] =& $arr1;
print_r(unserialize(serialize($arr1)));
?>
Expected result:
----------------
Array
(
[0] => Array
(
[0] => Array
(
[0] => Array
(
[0] => Array
*RECURSION*
)
)
)
)
Actual result:
--------------
Segmentation fault
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35488&edit=1