Bug #61003 [Opn->Asn]: mysql_stat() require a valid connection

From: Date: Tue, 07 Feb 2012 20:09:23 +0000
Subject: Bug #61003 [Opn->Asn]: mysql_stat() require a valid connection
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-167273@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=61003&edit=1

 ID:                 61003
 Updated by:         johannes@php.net
 Reported by:        rein at basefarm dot no
 Summary:            mysql_stat() require a valid connection
-Status:             Open
+Status:             Assigned
 Type:               Bug
 Package:            MySQLi related
 Operating System:   Linux and Solaris
 PHP Version:        5.3.10
-Assigned To:        
+Assigned To:        mysql
 Block user comment: N
 Private report:     N



Previous Comments:
------------------------------------------------------------------------
[2012-02-07 14:57:20] 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.




------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=61003&edit=1


Thread (3 messages)

« previous php.bugs (#167273) next »