php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68554 mysqli_stmt::next_result unavailable before php 5.4
Submitted: 2014-12-05 18:58 UTC Modified: 2014-12-05 19:19 UTC
From: zburnham at gmail dot com Assigned: aharvey (profile)
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS: CentOS
Private report: No CVE-ID: None
 [2014-12-05 18:58 UTC] zburnham at gmail dot com
Description:
------------
The mysqli documentation describes the mysqli_stmt::next_result method, and only says that php 5 is required.  This is not true.  It is only available on 5.4.x and newer.  I realize that php 5.3 is EOL.  I'm not asking for it to be patched to provide this method.  I would like for the documentation at http://php.net/manual/en/mysqli-stmt.next-result.php to be updated to reflect this.  In addition, http://php.net/manual/en/class.mysqli-stmt.php lists no 'next_result' method in the class block, but it appears in the "Table of Contents" below it.  This should probably be consistent.

Test script:
---------------
<?php
var_dump(method_exists('mysqli_stmt','next_result'));

Expected result:
----------------
bool(true)

Actual result:
--------------
bool(false) // php 5.3.x
bool(true) // php 5.4.x

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-12-05 19:09 UTC] aharvey@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: aharvey
 [2014-12-05 19:09 UTC] aharvey@php.net
Looks like it was in 5.3, but only when mysqli was built against mysqlnd, and not in previous versions.

I'll do a sweep — I'm guessing there are more functions than just this in that boat.
 [2014-12-05 19:18 UTC] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=335248
Log: Fix version and mysqlnd dependencies for mysqli_stmt_{more,next}_result.

Fixes doc bug #68554 (mysqli_stmt::next_result unavailable before php 5.4).
 [2014-12-05 19:19 UTC] aharvey@php.net
-Status: Assigned +Status: Closed
 [2014-12-05 19:19 UTC] aharvey@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.

Looks like only mysqli_stmt_more_results and mysqli_stmt_next_result were incorrectly documented there.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 03 20:01:31 2024 UTC