andrey          Wed Feb 20 18:28:37 2008 UTC

  Modified files:              
    /php-src/ext/mysqli/tests   mysqli_stmt_bind_result_references.phpt 
  Log:
  Fix test. Now passes.
  
  
http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/mysqli_stmt_bind_result_references.phpt?r1=1.2&r2=1.3&diff_format=u
Index: php-src/ext/mysqli/tests/mysqli_stmt_bind_result_references.phpt
diff -u php-src/ext/mysqli/tests/mysqli_stmt_bind_result_references.phpt:1.2 
php-src/ext/mysqli/tests/mysqli_stmt_bind_result_references.phpt:1.3
--- php-src/ext/mysqli/tests/mysqli_stmt_bind_result_references.phpt:1.2        
Thu Aug  9 10:01:20 2007
+++ php-src/ext/mysqli/tests/mysqli_stmt_bind_result_references.phpt    Wed Feb 
20 18:28:37 2008
@@ -25,7 +25,7 @@
        if (true !== ($tmp = mysqli_stmt_bind_result($stmt, $id, $label)))
                printf("[002] Expecting boolean/true, got %s/%s\n", 
gettype($tmp), $tmp);
 
-       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
+       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || 
mysqli_stmt_fetch($stmt))
                printf("[003] [%d] %s\n", mysqli_stmt_errno($stmt), 
mysqli_stmt_error($stmt));
 
        var_dump($id);
@@ -42,7 +42,7 @@
        if (true !== ($tmp = mysqli_stmt_bind_result($stmt, $id_ref, 
$label_ref)))
                printf("[004] Expecting boolean/true, got %s/%s\n", 
gettype($tmp), $tmp);
 
-       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
+       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || 
mysqli_stmt_fetch($stmt))
                printf("[005] [%d] %s\n", mysqli_stmt_errno($stmt), 
mysqli_stmt_error($stmt));
        var_dump($id_ref);
        var_dump($id);
@@ -62,7 +62,7 @@
        if (true !== ($tmp = mysqli_stmt_bind_result($stmt, $id_ref_ref, 
$label_ref_ref)))
                printf("[006] Expecting boolean/true, got %s/%s\n", 
gettype($tmp), $tmp);
 
-       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
+       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || 
mysqli_stmt_fetch($stmt))
                printf("[007] [%d] %s\n", mysqli_stmt_errno($stmt), 
mysqli_stmt_error($stmt));
        var_dump($id_ref_ref);
        var_dump($id_ref);
@@ -81,7 +81,7 @@
        if (true !== ($tmp = mysqli_stmt_bind_result($stmt, $id_ref, 
$label_ref)))
                printf("[008] Expecting boolean/true, got %s/%s\n", 
gettype($tmp), $tmp);
 
-       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
+       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || 
mysqli_stmt_fetch($stmt))
                printf("[009] [%d] %s\n", mysqli_stmt_errno($stmt), 
mysqli_stmt_error($stmt));
        var_dump($id_ref);
        var_dump($id);
@@ -95,7 +95,7 @@
        if (true !== ($tmp = mysqli_stmt_bind_result($stmt, $id, $label)))
                printf("[010] Expecting boolean/true, got %s/%s\n", 
gettype($tmp), $tmp);
 
-       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
+       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || 
mysqli_stmt_fetch($stmt))
                printf("[011] [%d] %s\n", mysqli_stmt_errno($stmt), 
mysqli_stmt_error($stmt));
 
        var_dump($id);
@@ -110,7 +110,7 @@
        if (true !== ($tmp = mysqli_stmt_bind_result($stmt, $obj->id, 
$obj->label)))
                printf("[012] Expecting boolean/true, got %s/%s\n", 
gettype($tmp), $tmp);
 
-       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
+       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || 
mysqli_stmt_fetch($stmt))
                printf("[013] [%d] %s\n", mysqli_stmt_errno($stmt), 
mysqli_stmt_error($stmt));
 
        var_dump($obj->id);
@@ -128,7 +128,7 @@
        if (true !== ($tmp = mysqli_stmt_bind_result($stmt, $id, $label)))
                printf("[012] Expecting boolean/true, got %s/%s\n", 
gettype($tmp), $tmp);
 
-       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
+       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || 
mysqli_stmt_fetch($stmt))
                printf("[013] [%d] %s\n", mysqli_stmt_errno($stmt), 
mysqli_stmt_error($stmt));
 
        var_dump($obj->id);
@@ -148,7 +148,7 @@
        $label = &$obj->id;
        $id = null;
 
-       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
+       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || 
mysqli_stmt_fetch($stmt))
                printf("[013] [%d] %s\n", mysqli_stmt_errno($stmt), 
mysqli_stmt_error($stmt));
 
        var_dump($obj->id);
@@ -169,7 +169,7 @@
        $id_ref = 1;
        $label_ref = 1;
 
-       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
+       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || 
mysqli_stmt_fetch($stmt))
                printf("[015] [%d] %s\n", mysqli_stmt_errno($stmt), 
mysqli_stmt_error($stmt));
        var_dump($id_ref);
        var_dump($id);
@@ -184,7 +184,7 @@
 
        if (true !== ($tmp = mysqli_stmt_bind_result($stmt, $id, $label_a)))
                printf("[016] Expecting boolean/true, got %s/%s\n", 
gettype($tmp), $tmp);
-       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
+       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || 
mysqli_stmt_fetch($stmt))
                printf("[017] [%d] %s\n", mysqli_stmt_errno($stmt), 
mysqli_stmt_error($stmt));
 
        var_dump($id);
@@ -208,7 +208,7 @@
 
        if (true !== ($tmp = mysqli_stmt_bind_result($stmt, $id, $label_ref)))
                printf("[018] Expecting boolean/true, got %s/%s\n", 
gettype($tmp), $tmp);
-       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
+       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || 
mysqli_stmt_fetch($stmt))
                printf("[019] [%d] %s\n", mysqli_stmt_errno($stmt), 
mysqli_stmt_error($stmt));
 
        var_dump($id);
@@ -231,7 +231,7 @@
 
        if (true !== ($tmp = mysqli_stmt_bind_result($stmt, $id, $label)))
                printf("[020] Expecting boolean/true, got %s/%s\n", 
gettype($tmp), $tmp);
-       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt))
+       if (!mysqli_stmt_execute($stmt) || !mysqli_stmt_fetch($stmt) || 
mysqli_stmt_fetch($stmt))
                printf("[021] [%d] %s\n", mysqli_stmt_errno($stmt), 
mysqli_stmt_error($stmt));
        var_dump($id);
        var_dump($label);
@@ -375,4 +375,4 @@
   [u"foo"]=>
   &unicode(1) "a"
 }
-done!
\ No newline at end of file
+done!

-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to