FAQ
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

Search Discussions

  • Derick Rethans at Jun 13, 2003 at 9:00 pm

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

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedJun 13, '03 at 8:48p
activeJun 13, '03 at 9:00p
posts2
users2
websitephp.net

2 users in discussion

Travis Miller: 1 post Derick Rethans: 1 post

People

Translate

site design / logo © 2022 Grokbase