mysql_info() segfault?

From: Date: Fri, 13 Jun 2003 20:42:18 +0000
Subject: mysql_info() segfault?
Groups: php.internals 
Request: Send a blank email to internals+get-2316@lists.php.net to get a copy of this message
First let me say hello, and I hope I am on the correct list for posting this kinda of stuff. I seeing apache segfaults using apache 1.3.27, php 4.3.2, and mysql 3.23.56 while using mysql_info() inside of a class. Something like this: <? class MySQL { var $result; var $conn; function MySQL($host, $user, $pass, $db){
    $this->conn = mysql_connect($host,$user,$pass);
    mysql_select_db($db,$this->conn);
} function doQuery($query){
    $this->result = mysql_query($query,$this->conn);
} function getQueryInfo(){
    return(mysql_info($this->conn));
} } $sql =& new MySQL("host","user","pass","db"); $sql->doQuery("update table set num=10001"); echo "info: ".$sql->getQueryInfo(); ?> My actual application is much more complex, however the script above will still produce the seg fault on my machine. Thanks for any help, Travis Miller tmiller@web-1hosting.net

« previous php.internals (#2316) next »