diff options
Diffstat (limited to 'src/tests/encrypt_cookies_invalid_decryption_short_cookie.phpt')
| -rw-r--r-- | src/tests/encrypt_cookies_invalid_decryption_short_cookie.phpt | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/tests/encrypt_cookies_invalid_decryption_short_cookie.phpt b/src/tests/encrypt_cookies_invalid_decryption_short_cookie.phpt deleted file mode 100644 index 39f189c..0000000 --- a/src/tests/encrypt_cookies_invalid_decryption_short_cookie.phpt +++ /dev/null | |||
| @@ -1,25 +0,0 @@ | |||
| 1 | --TEST-- | ||
| 2 | Cookie encryption - invalid decryption in simulation mode with a short cookie | ||
| 3 | --SKIPIF-- | ||
| 4 | <?php if (!extension_loaded("snuffleupagus")) die "skip"; ?> | ||
| 5 | --INI-- | ||
| 6 | sp.configuration_file={PWD}/config/config_encrypted_cookies_simulation.ini | ||
| 7 | display_errors=1 | ||
| 8 | display_startup_errors=1 | ||
| 9 | error_reporting=E_ALL | ||
| 10 | --COOKIE-- | ||
| 11 | super_cookie=AAA;awful_cookie=awful_cookie_value; | ||
| 12 | --ENV-- | ||
| 13 | return <<<EOF | ||
| 14 | REMOTE_ADDR=127.0.0.1 | ||
| 15 | EOF; | ||
| 16 | --FILE-- | ||
| 17 | <?php var_dump($_COOKIE); ?> | ||
| 18 | --EXPECT-- | ||
| 19 | Warning: [snuffleupagus][cookie_encryption] Buffer underflow tentative detected in cookie encryption handling for super_cookie. Using the cookie 'as it' instead of decrypting it in Unknown on line 0 | ||
| 20 | array(2) { | ||
| 21 | ["super_cookie"]=> | ||
| 22 | string(3) "AAA" | ||
| 23 | ["awful_cookie"]=> | ||
| 24 | string(18) "awful_cookie_value" | ||
| 25 | } \ No newline at end of file | ||
