Reply to Re: [PHP] php 5.0.5 segfaults apache2 on ubuntu, 5.0.4 ok

Your name:

Reply:


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.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация