mysqli_fetch_all does not work with MYSQLI_USE_RESULT
| Request #52302 | mysqli_fetch_all does not work with MYSQLI_USE_RESULT | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2010-07-10 10:39 UTC | Modified: | 2010-08-11 10:01 UTC |
|
||||||||||
| From: | brianlmoon@php.net | Assigned: | andrey (profile) | |||||||||||
| Status: | Closed | Package: | MySQLi related | |||||||||||
| PHP Version: | 5.3.2 | OS: | Linux | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2010-07-10 10:39 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2010-07-10 16:32 UTC] felipe@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: mysql
[2010-07-12 18:16 UTC] brad at njoe dot com
[2010-07-13 10:36 UTC] andrey@php.net
[2010-07-16 17:42 UTC] brianlmoon@php.net
[2010-08-05 14:11 UTC] johannes@php.net
[2010-08-09 19:37 UTC] andrey@php.net
-Status: Assigned +Status: Closed
[2010-08-09 19:37 UTC] andrey@php.net
[2010-08-10 01:43 UTC] brianlmoon@php.net
[2010-08-11 10:01 UTC] andrey@php.net
-Assigned To: mysql +Assigned To: andrey
[2010-08-11 10:01 UTC] andrey@php.net