Download src/php/php-src/ext/mysqli/tests/bug31141.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 427 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/mysqli/tests/bug31141.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/mysqli/tests/bug31141.phpt
-
curl -L -o bug31141.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/mysqli/tests/bug31141.phpt
427 Bytes
| --TEST-- | |
| Bug #31141 (properties declared in the class extending MySQLi are not available) | |
| --EXTENSIONS-- | |
| mysqli | |
| --FILE-- | |
| class Test extends mysqli | |
| { | |
| public $test = array(); | |
| function foo() | |
| { | |
| $ar_test = array("foo", "bar"); | |
| $this->test = &$ar_test; | |
| } | |
| } | |
| $my_test = new Test; | |
| $my_test->foo(); | |
| var_dump($my_test->test); | |
| --EXPECTF-- | |
| array(2) { | |
| [0]=> | |
| %s(3) "foo" | |
| [1]=> | |
| %s(3) "bar" | |
| } | |