|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #62046 mysqli@mysqlnd can't iterate over stored sets after call to mysqli_stmt_reset()
Submitted: 2012-05-16 12:14 UTC Modified: 2012-05-16 23:10 UTC
From: Assigned: mysql (profile)
Status: Closed Package: MySQLi related
PHP Version: 5.3Git-2012-05-16 (Git) OS: All
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
New email:
PHP Version: OS:


 [2012-05-16 12:14 UTC]
 mysqlnd's implementation of stmt_reset() has a bug, that stored results sets exist but cannot be read if mysqli_stmt::reset() is called. After reset the data is unavailable.

Test script:
$link = new mysqli_connect('', 'root', 'root', 'test');
$s = $mysqli->prepare('SELECT 42');
$one = NULL;
while ($s->fetch()) {

Expected result:

Actual result:


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2012-05-16 12:14 UTC]
-Status: Open +Status: Verified -Assigned To: +Assigned To: mysql
 [2012-05-16 23:10 UTC]
-Status: Verified +Status: Closed
 [2012-05-16 23:10 UTC]
This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at

 For Windows:
Thank you for the report, and for helping us make PHP better.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Fri Sep 22 15:01:24 2023 UTC