Download src/php/php-src/ext/mysqli/tests/bug33263.phpt from meddyrat/dis-bench: direct link, hf CLI and curl.
- Browser
- Download file 837 Bytes
-
https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/mysqli/tests/bug33263.phpt
- Command line
-
hf download hf://datasets/meddyrat/dis-bench/src/php/php-src/ext/mysqli/tests/bug33263.phpt
-
curl -L -o bug33263.phpt https://huggingface.co/datasets/meddyrat/dis-bench/resolve/main/src/php/php-src/ext/mysqli/tests/bug33263.phpt
837 Bytes
| --TEST-- | |
| Bug #33263 (mysqli_real_connect in __construct) | |
| --EXTENSIONS-- | |
| mysqli | |
| --SKIPIF-- | |
| require_once 'skipifconnectfailure.inc'; | |
| --FILE-- | |
| require_once 'connect.inc'; | |
| class test extends mysqli | |
| { | |
| public function __construct($host, $user, $passwd, $db, $port, $socket) { | |
| parent::__construct(); | |
| parent::real_connect($host, $user, $passwd, $db, $port, $socket); | |
| } | |
| } | |
| $mysql = new test($host, $user, $passwd, $db, $port, $socket); | |
| $stmt = $mysql->prepare("SELECT DATABASE()"); | |
| $stmt->execute(); | |
| $stmt->bind_result($database); | |
| $stmt->fetch(); | |
| $stmt->close(); | |
| if ($database != $db) | |
| printf("[001] Expecting '%s' got %s/'%s'.\n", | |
| gettype($database), $database); | |
| $mysql->close(); | |
| print "done!"; | |
| --EXPECT-- | |
| done! | |