mysql_stat() require a valid connection

 [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.



 [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