# mysql_info() segfault?

- Thread: https://externals.io/message/2316
- Original archive: https://news-web.php.net/php.internals/2316
- Started by Travis Miller on 2003-06-13T20:42:18+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #2316 — Travis Miller — 2003-06-13T20:42:18+00:00

URL: https://externals.io/message/2316#2316

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

---

## #2317 — Derick Rethans — 2003-06-13T21:00:20+00:00

URL: https://externals.io/message/2316#2317 · In reply to: #2316

> 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/
