@@ 679-683 (lines=5) @@ | ||
676 | if ($session_data) { |
|
677 | $session_data = preg_replace_callback( |
|
678 | '!s:(d+):"(.*?)";!', |
|
679 | function ($match) { |
|
680 | return $match[1] === strlen($match[2]) |
|
681 | ? $match[0] |
|
682 | : 's:' . strlen($match[2]) . ':"' . $match[2] . '";'; |
|
683 | }, |
|
684 | $session_data |
|
685 | ); |
|
686 | } |
|
@@ 1195-1203 (lines=9) @@ | ||
1192 | $error = '<pre>'; |
|
1193 | $data2 = preg_replace_callback( |
|
1194 | '!s:(\d+):"(.*?)";!', |
|
1195 | function ($match) { |
|
1196 | return ($match[1] === strlen($match[2])) |
|
1197 | ? $match[0] |
|
1198 | : 's:' |
|
1199 | . strlen($match[2]) |
|
1200 | . ':"' |
|
1201 | . $match[2] |
|
1202 | . '";'; |
|
1203 | }, |
|
1204 | $data1 |
|
1205 | ); |
|
1206 | $max = (strlen($data1) > strlen($data2)) ? strlen($data1) : strlen($data2); |