Bug #52302 [Opn->Asn]: mysqli_fetch_all does not work with MYSQLI_USE_RESULT

From: Date: Sat, 10 Jul 2010 14:32:44 +0000
Subject: Bug #52302 [Opn->Asn]: mysqli_fetch_all does not work with MYSQLI_USE_RESULT
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-152256@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=52302&edit=1

 ID:               52302
 Updated by:       felipe@php.net
 Reported by:      brianlmoon@php.net
 Summary:          mysqli_fetch_all does not work with MYSQLI_USE_RESULT
-Status:           Open
+Status:           Assigned
 Type:             Bug
 Package:          MySQLi related
 Operating System: Linux
 PHP Version:      5.3.2
-Assigned To:      
+Assigned To:      mysql



Previous Comments:
------------------------------------------------------------------------
[2010-07-10 10:39:32] brianlmoon@php.net

Description:
------------
When using MYSQLI_USE_RESULT as the second parameter to mysqli_query,
fetch_all returns null.

Test script:
---------------
<?php

$m = new MySQLi("", "root", "", "information_schema");

$sql = "show tables";

$res = $m->query($sql, MYSQLI_USE_RESULT);

$rows = $res->fetch_all();

var_dump($rows);

?>

Expected result:
----------------
An array of the table data.

Actual result:
--------------
NULL


------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52302&edit=1


Thread (9 messages)

« previous php.bugs (#152256) next »