| @@ 673-677 (lines=5) @@ | ||
| 670 | if ($session_data) { |
|
| 671 | $session_data = preg_replace_callback( |
|
| 672 | '!s:(d+):"(.*?)";!', |
|
| 673 | function ($match) { |
|
| 674 | return $match[1] === strlen($match[2]) |
|
| 675 | ? $match[0] |
|
| 676 | : 's:' . strlen($match[2]) . ':"' . $match[2] . '";'; |
|
| 677 | }, |
|
| 678 | $session_data |
|
| 679 | ); |
|
| 680 | } |
|
| @@ 1189-1197 (lines=9) @@ | ||
| 1186 | $error = '<pre>'; |
|
| 1187 | $data2 = preg_replace_callback( |
|
| 1188 | '!s:(\d+):"(.*?)";!', |
|
| 1189 | function ($match) { |
|
| 1190 | return ($match[1] === strlen($match[2])) |
|
| 1191 | ? $match[0] |
|
| 1192 | : 's:' |
|
| 1193 | . strlen($match[2]) |
|
| 1194 | . ':"' |
|
| 1195 | . $match[2] |
|
| 1196 | . '";'; |
|
| 1197 | }, |
|
| 1198 | $data1 |
|
| 1199 | ); |
|
| 1200 | $max = (strlen($data1) > strlen($data2)) ? strlen($data1) : strlen($data2); |
|