Download src/php/php-src/ext/session/tests/bug36459.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 1.49 kB
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/bug36459.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/session/tests/bug36459.phpt
-
curl -L -o bug36459.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/bug36459.phpt
1.49 kB
| --TEST-- | |
| Bug #31454 (Incorrect adding PHPSESSID to links, which contains \r\n) | |
| --EXTENSIONS-- | |
| session | |
| --SKIPIF-- | |
| include('skipif.inc'); | |
| --INI-- | |
| session.use_trans_sid=1 | |
| session.use_cookies=0 | |
| session.use_only_cookies=0 | |
| session.name=sid | |
| --FILE-- | |
| error_reporting(E_ALL); | |
| session_start(); | |
| # Do not remove \r from this tests, they are essential! | |
| <html> | |
| <head> | |
| <title>Bug #36459 Incorrect adding PHPSESSID to links, which contains \r\n</title> | |
| </head> | |
| <body> | |
| <p>See source html code</p> | |
| <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2" | |
| style="font: normal 11pt Times New Roman">incorrect link</a><br /> | |
| <br /> | |
| <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2" style="font: normal 11pt Times New Roman">correct link</a> | |
| </body> | |
| </html> | |
| --EXPECTF-- | |
| Deprecated: PHP Startup: Disabling session.use_only_cookies INI setting is deprecated in Unknown on line 0 | |
| Deprecated: PHP Startup: Enabling session.use_trans_sid INI setting is deprecated in Unknown on line 0 | |
| <html> | |
| <head> | |
| <title>Bug #36459 Incorrect adding PHPSESSID to links, which contains \r\n</title> | |
| </head> | |
| <body> | |
| <p>See source html code</p> | |
| <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2&sid=%s" | |
| style="font: normal 11pt Times New Roman">incorrect link</a><br /> | |
| <br /> | |
| <a href="/b2w/www/ru/adm/pages/?action=prev&rec_id=8&pid=2&sid=%s" style="font: normal 11pt Times New Roman">correct link</a> | |
| </body> | |
| </html> | |