mysql_info() segfault?

php.internals

Travis Miller

23 years ago
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

Derick Rethans

23 years ago
On Fri, 13 Jun 2003, Travis Miller wrote:
> First let me say hello, and I hope I am on the correct list for posting > this kinda of stuff.
Please file a bug at bugs.php.net, and don't forget to include a backtrace (instructions can be found on the bug reporting page). regards, Derick
-- "Interpreting what the GPL actually means is a job best left to those that read the future by examining animal entrails." ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ International PHP Magazine http://php-mag.net/ -------------------------------------------------------------------------