| @@ 666-670 (lines=5) @@ | ||
| 663 | if ($session_data) { |
|
| 664 | $session_data = preg_replace_callback( |
|
| 665 | '!s:(d+):"(.*?)";!', |
|
| 666 | function ($match) { |
|
| 667 | return $match[1] === strlen($match[2]) |
|
| 668 | ? $match[0] |
|
| 669 | : 's:' . strlen($match[2]) . ':"' . $match[2] . '";'; |
|
| 670 | }, |
|
| 671 | $session_data |
|
| 672 | ); |
|
| 673 | } |
|
| @@ 1182-1190 (lines=9) @@ | ||
| 1179 | $error = '<pre>'; |
|
| 1180 | $data2 = preg_replace_callback( |
|
| 1181 | '!s:(\d+):"(.*?)";!', |
|
| 1182 | function ($match) { |
|
| 1183 | return ($match[1] === strlen($match[2])) |
|
| 1184 | ? $match[0] |
|
| 1185 | : 's:' |
|
| 1186 | . strlen($match[2]) |
|
| 1187 | . ':"' |
|
| 1188 | . $match[2] |
|
| 1189 | . '";'; |
|
| 1190 | }, |
|
| 1191 | $data1 |
|
| 1192 | ); |
|
| 1193 | $max = (strlen($data1) > strlen($data2)) ? strlen($data1) : strlen($data2); |
|