Download src/php/php-src/ext/gmp/tests/clone.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 278 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gmp/tests/clone.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/gmp/tests/clone.phpt
-
curl -L -o clone.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/gmp/tests/clone.phpt
278 Bytes
| --TEST-- | |
| Cloning GMP instances | |
| --EXTENSIONS-- | |
| gmp | |
| --FILE-- | |
| $a = gmp_init(3); | |
| $b = clone $a; | |
| gmp_clrbit($a, 0); | |
| var_dump($a, $b); // $b should be unaffected | |
| --EXPECT-- | |
| object(GMP)#1 (1) { | |
| ["num"]=> | |
| string(1) "2" | |
| } | |
| object(GMP)#2 (1) { | |
| ["num"]=> | |
| string(1) "3" | |
| } | |