|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-05-16 12:14 UTC] andrey@php.net
-Status: Open
+Status: Verified
-Assigned To:
+Assigned To: mysql
[2012-05-16 23:10 UTC] andrey@php.net
-Status: Verified
+Status: Closed
[2012-05-16 23:10 UTC] andrey@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Nov 03 23:00:01 2025 UTC |
Description: ------------ 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: --------------- <?php $link = new mysqli_connect('127.0.0.1', 'root', 'root', 'test'); $s = $mysqli->prepare('SELECT 42'); $s->execute(); $s->store_result(); $one = NULL; $s->bind_result($one); $s->reset(); while ($s->fetch()) { var_dump($one); } $s->close(); $c->close(); ?> Expected result: ---------------- int(42) Actual result: -------------- nothing