|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-04 19:02 UTC] lsmith@php.net
[2005-12-24 02:11 UTC] sniper@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 21 04:00:02 2025 UTC |
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