note 99802 deleted from function.unserialize by danbrown

From: Date: Thu, 09 Sep 2010 14:18:47 +0000
Subject: note 99802 deleted from function.unserialize by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-172413@lists.php.net to get a copy of this message
Note Submitter: trepanovitch at gmail dot com ---- There is a problem with the function provided first by Thor222 and then stepanic if the __unserialize meets the following string \"; the regex will stop at the offset of this character, here is my fix to this problem : return preg_replace('/s:(\d+):"((.*?)(?<!\\\\))";/sie', "'s:'.strlen('$2').':\"$2\";'", $serial_str ); Best regards

« previous php.notes (#172413) next »