| @@ 566-570 (lines=5) @@ | ||
| 563 | if ($session_data) { |
|
| 564 | $session_data = preg_replace_callback( |
|
| 565 | '!s:(d+):"(.*?)";!', |
|
| 566 | function ($match) { |
|
| 567 | return $match[1] === strlen($match[2]) |
|
| 568 | ? $match[0] |
|
| 569 | : 's:' . strlen($match[2]) . ':"' . $match[2] . '";'; |
|
| 570 | }, |
|
| 571 | $session_data |
|
| 572 | ); |
|
| 573 | } |
|
| @@ 1073-1081 (lines=9) @@ | ||
| 1070 | $error = '<pre>'; |
|
| 1071 | $data2 = preg_replace_callback( |
|
| 1072 | '!s:(\d+):"(.*?)";!', |
|
| 1073 | function ( $match ) { |
|
| 1074 | return ( $match[1] === strlen( $match[2] ) ) |
|
| 1075 | ? $match[0] |
|
| 1076 | : 's:' |
|
| 1077 | . strlen( $match[2] ) |
|
| 1078 | . ':"' |
|
| 1079 | . $match[2] |
|
| 1080 | . '";'; |
|
| 1081 | }, |
|
| 1082 | $data1 |
|
| 1083 | ); |
|
| 1084 | $max = ( strlen( $data1 ) > strlen( $data2 ) ) ? strlen( $data1 ) : strlen( $data2 ); |
|