Re: [PHP] strange mysqli error

2006-08-23 Thread Richard K Miller
On Aug 23, 2006, at 11:41 AM, Jochem Maas wrote: you can still use OOP, only you can't rely on auto destruct with regard to object existance. try the ini settings auto_prepend_file auto_append_file http://php.net/manual/en/ini.core.php#ini.auto-append-file and use them to control the startup

Re: [PHP] strange mysqli error

2006-08-23 Thread Jochem Maas
Richard K Miller wrote: > > On Aug 23, 2006, at 2:33 AM, Jochem Maas wrote: > >> how do you know which object is destroyed first? >> >> also you are using 3 different versions of php - not something that will >> help narrow down the problem. >> ... >> > > No errors when I use unset(). I see

Re: [PHP] strange mysqli error

2006-08-23 Thread Richard K Miller
On Aug 23, 2006, at 2:33 AM, Jochem Maas wrote: how do you know which object is destroyed first? also you are using 3 different versions of php - not something that will help narrow down the problem. Richard K Miller wrote: Good afternoon. I'm getting a weird mysqli error in my object de

Re: [PHP] strange mysqli error

2006-08-23 Thread Jochem Maas
how do you know which object is destroyed first? also you are using 3 different versions of php - not something that will help narrow down the problem. Richard K Miller wrote: > Good afternoon. I'm getting a weird mysqli error in my object > destructor. Here's an example: > > > $db = new mys

[PHP] strange mysqli error

2006-08-22 Thread Richard K Miller
Good afternoon. I'm getting a weird mysqli error in my object destructor. Here's an example: query("SELECT 'test'"); print_r($db->error); } function __destruct() { global $db; $db->query("SELECT 'test'")