Download src/php/php-src/ext/simplexml/tests/038.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 212 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/simplexml/tests/038.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/simplexml/tests/038.phpt
-
curl -L -o 038.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/simplexml/tests/038.phpt
212 Bytes
| --TEST-- | |
| SimpleXML: Property assignment return value | |
| --EXTENSIONS-- | |
| simplexml | |
| --FILE-- | |
| $xml =<<<EOF | |
| <root></root> | |
| EOF; | |
| $root = simplexml_load_string($xml); | |
| var_dump($root->prop = 42); | |
| --EXPECT-- | |
| int(42) | |