]> granicus.if.org Git - php/commitdiff
No idea which recent change has cause this little API change, however it is not a...
authorUlf Wendel <uw@php.net>
Tue, 2 Feb 2010 13:10:50 +0000 (13:10 +0000)
committerUlf Wendel <uw@php.net>
Tue, 2 Feb 2010 13:10:50 +0000 (13:10 +0000)
ext/mysqli/tests/mysqli_errno_oo.phpt
ext/mysqli/tests/mysqli_error_oo.phpt

index bef4a607ebb0387d4c851f0c89c2f24f91701f66..5d5ea2508918e04f2170d081582ba759dbd86a9c 100644 (file)
@@ -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",
index 31716d9aafcd5e2a687bbe1d55e13801866cf3c3..1f0589679de7684a25b8889540b9924bc6fbf55f 100644 (file)
@@ -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",