mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Fixing test - make sure it checks the same conditions for libmysql and mysqlnd
This commit is contained in:
parent
fb80ebe102
commit
9b334da667
1 changed files with 3 additions and 4 deletions
|
@ -136,6 +136,7 @@ require_once('skipifconnectfailure.inc');
|
||||||
}
|
}
|
||||||
|
|
||||||
mysqli_close($link);
|
mysqli_close($link);
|
||||||
|
@var_dump($link);
|
||||||
|
|
||||||
if ($IS_MYSQLND) {
|
if ($IS_MYSQLND) {
|
||||||
ini_set('mysqli.default_host', 'p:' . $host);
|
ini_set('mysqli.default_host', 'p:' . $host);
|
||||||
|
@ -164,8 +165,6 @@ require_once('skipifconnectfailure.inc');
|
||||||
@mysqli_close($link);
|
@mysqli_close($link);
|
||||||
}
|
}
|
||||||
|
|
||||||
@var_dump($link);
|
|
||||||
|
|
||||||
if (NULL !== ($tmp = mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)))
|
if (NULL !== ($tmp = mysqli_real_connect($link, $host, $user, $passwd, $db, $port, $socket)))
|
||||||
printf("[026] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
printf("[026] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
||||||
|
|
||||||
|
@ -187,7 +186,7 @@ object(mysqli)#%d (%d) {
|
||||||
[%u|b%"connect_errno"]=>
|
[%u|b%"connect_errno"]=>
|
||||||
int(%d)
|
int(%d)
|
||||||
[%u|b%"connect_error"]=>
|
[%u|b%"connect_error"]=>
|
||||||
%unicode|string%(%d) "%s
|
NULL
|
||||||
[%u|b%"errno"]=>
|
[%u|b%"errno"]=>
|
||||||
%s
|
%s
|
||||||
[%u|b%"error"]=>
|
[%u|b%"error"]=>
|
||||||
|
@ -215,4 +214,4 @@ object(mysqli)#%d (%d) {
|
||||||
}
|
}
|
||||||
|
|
||||||
Warning: mysqli_real_connect(): Couldn't fetch mysqli in %s on line %d
|
Warning: mysqli_real_connect(): Couldn't fetch mysqli in %s on line %d
|
||||||
done!
|
done!
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue