uw              Thu May 28 18:28:08 2009 UTC

  Added files:                 (Branch: PHP_5_3)
    /php-src/ext/mysqli/tests   bug45289.phpt 
  Log:
  MFH - Andrey needs to have a look at this one. The bug report itself is 
bogus. However, the bug report shows a result set and that is wrong.
  

http://cvs.php.net/viewvc.cgi/php-src/ext/mysqli/tests/bug45289.phpt?view=markup&rev=1.1
Index: php-src/ext/mysqli/tests/bug45289.phpt
+++ php-src/ext/mysqli/tests/bug45289.phpt
--TEST--
Bug #45289 (Bogus store_result on PS)
--SKIPIF--
<?php
require_once('skipif.inc');
require_once('skipifconnectfailure.inc');
?>
--FILE--
<?php
        include("connect.inc");
        require('table.inc');

        $id = 1;
        if (!($stmt = $link->prepare('SELECT id, label FROM test WHERE id=? 
LIMIT 1')))
                printf("[001] [%d] %s\n", $link->errno, $link->error);

        if (!$stmt->bind_param('i', $id) || !$stmt->execute())
                printf("[002] [%d] %s\n", $stmt->errno, $stmt->error);

        if ($res = $link->store_result()) {
                printf("[003] Can store result!\n");
        } else {
                printf("[003] [%d] %s\n", $link->errno, $link->error);
        }

        var_dump($res->fetch_assoc());
?>
--EXPECTF--
[003] [0%s

Fatal error: Call to a member function fetch_assoc() on a non-object in %s on 
line %d


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

Reply via email to