Download src/php/php-src/ext/session/tests/bug53141.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 435 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/bug53141.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/session/tests/bug53141.phpt
-
curl -L -o bug53141.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/session/tests/bug53141.phpt
435 Bytes
| --TEST-- | |
| Bug #53141 (autoload misbehaves if called from closing session) | |
| --EXTENSIONS-- | |
| session | |
| --SKIPIF-- | |
| include('skipif.inc'); | |
| --FILE-- | |
| spl_autoload_register(function ($class) { | |
| var_dump("Loading $class"); | |
| eval('class Bar {}'); | |
| }); | |
| class Foo | |
| { | |
| function __sleep() | |
| { | |
| new Bar; | |
| return array(); | |
| } | |
| } | |
| session_start(); | |
| $_SESSION['foo'] = new Foo; | |
| --EXPECT-- | |
| string(11) "Loading Bar" | |