mirror of
https://github.com/php/php-src.git
synced 2024-12-04 15:23:44 +08:00
33 lines
641 B
PHP
33 lines
641 B
PHP
--TEST--
|
|
mysql_fetch_row (OO-Style)
|
|
--SKIPIF--
|
|
<?php
|
|
require_once('skipif.inc');
|
|
require_once('skipifemb.inc');
|
|
require_once('skipifconnectfailure.inc');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
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]=>
|
|
%unicode|string%(%d) "%s"
|
|
}
|
|
done!
|