Download src/php/php-src/ext/mysqli/tests/049.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 632 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/mysqli/tests/049.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/mysqli/tests/049.phpt
-
curl -L -o 049.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/mysqli/tests/049.phpt
632 Bytes
| --TEST-- | |
| mysql_fetch_row (OO-Style) | |
| --EXTENSIONS-- | |
| mysqli | |
| --SKIPIF-- | |
| require_once 'skipifconnectfailure.inc'; | |
| --FILE-- | |
| require_once 'connect.inc'; | |
| /*** test mysqli_connect 127.0.0.1 ***/ | |
| $mysql = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket); | |
| $mysql->select_db($db); | |
| $result = $mysql->query("SELECT DATABASE()"); | |
| $row = $result->fetch_row(); | |
| $result->close(); | |
| var_dump($row); | |
| if ($row[0] != $db) | |
| printf("[001] Expecting '%s' got '%s'\n", $db, $row[0]); | |
| $mysql->close(); | |
| print "done!"; | |
| --EXPECTF-- | |
| array(1) { | |
| [0]=> | |
| string(%d) "%s" | |
| } | |
| done! | |