php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #61003 mysql_stat() require a valid connection
Submitted: 2012-02-07 14:57 UTC Modified: 2012-03-06 00:15 UTC
From: rein at basefarm dot no Assigned: mysql (profile)
Status: Closed Package: MySQLi related
PHP Version: 5.3.10 OS: Linux and Solaris
Private report: No CVE-ID: None
 [2012-02-07 14:57 UTC] rein at basefarm dot no
Description:
------------
Calling mysql_stat() from the mysql library requires a valid connection.  When php 5.3.10 is built with the mysql 5.1.58 client library a seg.fault is seen in ext/mysqli/tests/bug34810.phpt when it calls var_dump like:

 $link = mysqli_init();
 @var_dump($link);

The attached patch fixes this.



Patches

rein-mysqli_prop.patch (last revision 2012-02-07 14:59 UTC by rein at basefarm dot no)

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2012-02-07 20:09 UTC] johannes@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: mysql
 [2012-03-06 00:15 UTC] johannes@php.net
Automatic comment from SVN on behalf of johannes
Revision: http://svn.php.net/viewvc/?view=revision&revision=323931
Log: Fix bug #61003 mysql_stat() require a valid connection
 [2012-03-06 00:15 UTC] johannes@php.net
-Status: Assigned +Status: Closed
 [2012-03-06 00:15 UTC] johannes@php.net
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
http://snaps.php.net/.

 For Windows:

http://windows.php.net/snapshots/
 
Thank you for the report, and for helping us make PHP better.


 [2012-04-18 09:45 UTC] laruence@php.net
Automatic comment on behalf of johannes
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0aa45f4a2a6074a21304190c8ab921492bd90fea
Log: Fix bug #61003 mysql_stat() require a valid connection
 [2012-07-24 23:36 UTC] rasmus@php.net
Automatic comment on behalf of johannes
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0aa45f4a2a6074a21304190c8ab921492bd90fea
Log: Fix bug #61003 mysql_stat() require a valid connection
 [2013-11-17 09:33 UTC] laruence@php.net
Automatic comment on behalf of johannes
Revision: http://git.php.net/?p=php-src.git;a=commit;h=0aa45f4a2a6074a21304190c8ab921492bd90fea
Log: Fix bug #61003 mysql_stat() require a valid connection
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 02:01:28 2024 UTC