ID:               3559
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Misbehaving function
 Operating System: RedHat 6.0, Win2K
 PHP Version:      3.0.14
 New Comment:

works in 4.2.3


Previous Comments:
------------------------------------------------------------------------

[2000-02-21 23:33:25] [EMAIL PROTECTED]

<?
$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 [EMAIL PROTECTED])
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);

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=3559&edit=1

Reply via email to