php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61137 missing mysql_stmt_get_result()
Submitted: 2012-02-19 04:48 UTC Modified: 2012-02-19 05:04 UTC
From: yohgaki@php.net Assigned:
Status: Not a bug Package: MySQLi related
PHP Version: 5.3.10 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
15 - 10 = ?
Subscribe to this entry?

 
 [2012-02-19 04:48 UTC] yohgaki@php.net
Description:
------------
Not researched why this happens, but somehow a function is missing in PHP 5.3.10, 
but not 5.4.

The manual says mysqli_stmt_get_result() is available from PHP 5.3.0, but it is 
missing.

http://jp2.php.net/manual/en/mysqli-stmt.get-result.php

msyqli_stmt::get_result() also seems missing.



Test script:
---------------
[yohgaki@dev php-5.3.10]$ ./configure --with-mysqli && make -j 9
[yohgaki@dev php-5.3.10]$ ./sapi/cli/php -r "print_r(get_defined_functions());" | grep mysqli_stmt_get
            [239] => mysqli_stmt_get_warnings


Expected result:
----------------
This is PHP 5.4 svn result.

[yohgaki@dev php-src-5.4]$ ./sapi/cli/php -r "print_r(get_defined_functions());" 
| grep mysqli_stmt_get
            [246] => mysqli_stmt_get_result
            [247] => mysqli_stmt_get_warnings


Actual result:
--------------
[yohgaki@dev php-5.3.10]$ ./sapi/cli/php -r "print_r(get_defined_functions());" | 
grep mysqli_stmt_get
            [239] => mysqli_stmt_get_warnings

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-19 05:04 UTC] rasmus@php.net
The manual also says these functions are only available if you are using the 
mysqlnd client library. Nyiur case you didn't use mysqlnd for your 5.3 build and 
in 5.4 we default to mysqlnd unless you specify otherwise. That's why you are 
seeing the difference.
 [2012-02-19 05:04 UTC] rasmus@php.net
-Status: Open +Status: Not a bug
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC