|
Posted by Petr Smith on 10/21/05 16:15
Hi,
thanks! that was it! when destruct method is removed, all problems are
gone.
I really don't know why I added the __destruct method to this mysql
wrapper. Maybe I saw it somewhere in discussion at php manual bottom....
This code segfaults my apache:
<?php
class test extends mysqli {
public function __construct() {
parent::__construct("localhost", "root", "", "mysql");
}
public function __destruct() {
$this->close();
}
}
$obj = new test();
?>
Accessing this page means immeadiate apacha segfault and actual
connection close. Anybody please test this on 5.0.5 and verify if it's
reproducible.
Petr
> I think this could be related to your _destruct method
> Can't you just rely on the parent class destruct method?
> Sorry to be a bit vague, I'll look into it a little further.
Navigation:
[Reply to this message]
|