Download src/php/php-src/Zend/tests/gc/bug80072.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 332 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/gc/bug80072.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/Zend/tests/gc/bug80072.phpt
-
curl -L -o bug80072.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/Zend/tests/gc/bug80072.phpt
332 Bytes
| --TEST-- | |
| Bug #80072: Cyclic unserialize in TMPVAR operand may leak | |
| --FILE-- | |
| try { | |
| $s = 'O:8:"stdClass":1:{s:1:"x";r:1;}'; | |
| unserialize($s) % gc_collect_cycles(); | |
| } catch (Error $e) { | |
| echo $e->getMessage(), "\n"; | |
| } | |
| $a[]=&$a == $a=&$b > gc_collect_cycles(); | |
| --EXPECT-- | |
| Unsupported operand types: stdClass % int | |