| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             [2004-12-30 10:13 UTC] chris-php at bolt dot cx
  [2005-01-09 15:11 UTC] ralf dot praschak at gmx dot net
  [2005-01-10 13:43 UTC] kier at vbulletin dot com
  [2005-01-13 21:11 UTC] gik at zap dot cl
  [2005-01-14 09:05 UTC] derick@php.net
  [2005-01-14 13:52 UTC] gik at zap dot cl
  [2005-01-14 14:40 UTC] john at jelsoft dot com
  [2005-01-14 18:17 UTC] dondop at gmail dot com
  [2005-01-14 22:47 UTC] chris at fast4gl dot com
  [2005-01-15 19:55 UTC] sesser@php.net
  [2005-01-15 23:27 UTC] gik at zap dot cl
  [2005-01-15 23:38 UTC] marekm at apnet dot pl
  [2005-01-16 09:51 UTC] sesser@php.net
  | 
    |||||||||||||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 10:00:02 2025 UTC | 
Description: ------------ I keep big multidimensional arrays serialize()'d into strings in database. After upgrade from 4.3.9 -> 4.3.10 I noticed, that unserialize() function on some of them work even 20 times slower. On other the slowdown is minimal. Reproduce code: --------------- <? function getmicrotime() { list($usec, $sec) = explode(" ", microtime()); return ((float)$usec + (float)$sec); } $f=fopen("serialized.txt","r"); $l1=fgets($f,1000000); fclose($f); $t1=getmicrotime(); $a=unserialize($l1); echo(getmicrotime()-$t1); ?> The tested "serialized.txt" file can be downloaded from http://ap.aptus.pl/serialized.txt Expected result: ---------------- The above script working as fast as in 4.3.9 Actual result: -------------- The script works about 20x slower.