]> granicus.if.org Git - php/commitdiff
Fixing test
authorUlf Wendel <uw@php.net>
Mon, 21 Sep 2009 11:54:15 +0000 (11:54 +0000)
committerUlf Wendel <uw@php.net>
Mon, 21 Sep 2009 11:54:15 +0000 (11:54 +0000)
ext/mysqli/tests/mysqli_stmt_bind_param_references.phpt

index 07a0ff34d6b7a272411194620c5bf924c54d37db..24d4314f1f8320e8590572e74332063ab0fe8023 100644 (file)
@@ -151,12 +151,13 @@ require_once('skipifconnectfailure.inc');
                printf("[025] [%d] %s\n", mysqli_stmt_errno($stmt), mysqli_stmt_error($stmt));
        findRow(26, $link, $id_ref_ref, $label_ref_ref);
 
+       unset($id);
+       unset($label);
        $id = 102;
        $label = new stdClass();
        $label->label = 'y';
        $id_ref = &$GLOBALS['id'];
        $label_ref = &$label->label;
-
        if (true !== ($tmp = mysqli_stmt_bind_param($stmt, "is", $id_ref, $label_ref)))
                printf("[027] Expecting boolean/false, got %s/%s\n", gettype($tmp), $tmp);
        if (true !== @mysqli_stmt_execute($stmt))