mirror of
https://github.com/php/php-src.git
synced 2024-10-19 15:34:25 +00:00
0b4c108bd7
mysqli_driver mysqli_warning mysqli_exception mysqli_sql_exception Improved embedded server support changed testsuite to work also with embedded server Made statement and resultset classes extendable minor fixes
25 lines
490 B
PHP
25 lines
490 B
PHP
--TEST--
|
|
mysql_fetch_row (OO-Style)
|
|
--SKIPIF--
|
|
<?php require_once('skipif.inc'); ?>
|
|
<?php require_once('skipifemb.inc'); ?>
|
|
--FILE--
|
|
<?php
|
|
include "connect.inc";
|
|
|
|
/*** test mysqli_connect 127.0.0.1 ***/
|
|
$mysql = mysqli_connect($host, $user, $passwd);
|
|
|
|
$mysql->select_db("test");
|
|
$result = $mysql->query("SELECT CURRENT_USER()");
|
|
$row = $result->fetch_row();
|
|
$result->close();
|
|
|
|
$ok = ($row[0] == $user . "@" . $host);
|
|
var_dump($ok);
|
|
|
|
$mysql->close();
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|