mirror of
https://github.com/php/php-src.git
synced 2024-09-23 02:47:26 +00:00
No idea which recent change has cause this little API change, however it is not a big change and maybe it is even an improvement.
This commit is contained in:
parent
12b548b5c1
commit
6db9e9839f
@ -14,8 +14,8 @@ require_once('skipifconnectfailure.inc');
|
||||
$link = NULL;
|
||||
|
||||
$mysqli = new mysqli();
|
||||
if (!is_null($tmp = @$mysqli->errno))
|
||||
printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
||||
if (0 !== ($tmp = @$mysqli->errno))
|
||||
printf("[001] Expecting int/0, got %s/%s\n", gettype($tmp), $tmp);
|
||||
|
||||
if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket))
|
||||
printf("[002] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
|
||||
|
@ -14,8 +14,8 @@ require_once('skipifconnectfailure.inc');
|
||||
$link = NULL;
|
||||
|
||||
$mysqli = new mysqli();
|
||||
if (!is_null($tmp = @$mysqli->error))
|
||||
printf("[001] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
|
||||
if ('' !== ($tmp = @$mysqli->error))
|
||||
printf("[001] Expecting empty string, got %s/'%s'\n", gettype($tmp), $tmp);
|
||||
|
||||
if (!$mysqli = new mysqli($host, $user, $passwd, $db, $port, $socket))
|
||||
printf("[002] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
|
||||
|
Loading…
Reference in New Issue
Block a user