|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-09-30 18:52 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Nov 06 03:00:01 2025 UTC |
<? $testvalue = Array('Hi' => 'There', 'Yo' => 'Joe'); $value = serialize($testvalue); while ( list($key, $val) = each($testvalue) ) { echo "Via Links (broken): $key = $val<br>\n"; } echo "Direct Access (works): $testvalue[Hi], $testvalue[Yo]<br>\n"; ?> Temporary fix: reset($your_array); after serialization. (perm fix courtesy of zerodiv@zerodivide.net) Permenant fix (version 3.0.x): ~line 240: php3api_var_serialize(buf, data); } // THIS IS THE FIX _php3_hash_internal_pointer_reset(struc->value.ht); // END OF FIX } STR_CAT(buf, "}", 1);