]> granicus.if.org Git - php/commitdiff
Adapting tests to accept actual behaviour found in 5.2, 5.3 and 6.0. The behaviour...
authorUlf Wendel <uw@php.net>
Wed, 9 Dec 2009 12:06:10 +0000 (12:06 +0000)
committerUlf Wendel <uw@php.net>
Wed, 9 Dec 2009 12:06:10 +0000 (12:06 +0000)
ext/mysqli/tests/bug34810.phpt
ext/mysqli/tests/mysqli_class_mysqli_interface.phpt
ext/mysqli/tests/mysqli_connect_error.phpt
ext/mysqli/tests/mysqli_kill.phpt

index 19a7e589bbf2583a6e9ae3e338aa0c9e15556d76..998d9f015b3e88f5d74f7db7a99beea235d01781 100644 (file)
@@ -55,7 +55,7 @@ object(mysqli)#%d (%d) {
   [%u|b%"connect_errno"]=>
   int(0)
   [%u|b%"connect_error"]=>
-  %unicode|string%(0) ""
+  NULL
   [%u|b%"errno"]=>
   int(0)
   [%u|b%"error"]=>
@@ -91,7 +91,7 @@ object(mysqli)#%d (%d) {
   [%u|b%"connect_errno"]=>
   int(0)
   [%u|b%"connect_error"]=>
-  %unicode|string%(0) ""
+  NULL
   [%u|b%"errno"]=>
   int(0)
   [%u|b%"error"]=>
index ad914b734329a60801931bb12dac0e8c5b1e5dde..b86f69c445b76bc0317fda078cb94a47ef575aff 100644 (file)
@@ -276,6 +276,6 @@ setting mysqli->unknown, mysqli_unknown = '13'
 setting mysqli->unknown, mysqli_unknown = 'friday'
 
 Access hidden properties for MYSLQI_STATUS_INITIALIZED (TODO documentation):
-mysqli->connect_error = ''/%unicode|string% (''/%unicode|string%)
+mysqli->connect_error = ''/NULL (''/NULL)
 mysqli->connect_errno = '0'/integer ('0'/integer)
 done!
\ No newline at end of file
index dc4db6af58af68210b68e4eaf543095e85dd91f3..79ac3f1f79529dd50fa7e740d39705f217f3a509 100644 (file)
@@ -21,8 +21,8 @@ require_once('skipifconnectfailure.inc');
                printf("[002] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
                        $host, $user, $db, $port, $socket);
 
-       if ('' !== ($tmp = mysqli_connect_error()))
-               printf("[003] Expecting string/'', got %s/%s\n", gettype($tmp), $tmp);
+       if (NULL !== ($tmp = mysqli_connect_error()))
+               printf("[003] Expecting NULL, got %s/%s\n", gettype($tmp), $tmp);
 
        mysqli_close($link);
 
index f680a68137d7b28894db07c1cb5044547170427b..5706adf46d4bdee2b457b6afaeaf9ab6612ebc89 100644 (file)
@@ -91,7 +91,7 @@ object(mysqli)#%d (%d) {
   [%u|b%"connect_errno"]=>
   int(0)
   [%u|b%"connect_error"]=>
-  %unicode|string%(0) ""
+  NULL
   [%u|b%"errno"]=>
   int(2006)
   [%u|b%"error"]=>