[nycphp-talk] PHP 5 singleton/destructor question
csnyder
chsnyder at gmail.com
Thu Mar 31 17:14:47 EST 2005
On Thu, 31 Mar 2005 17:02:06 -0500 (EST), David Mintz
<dmintz at davidmintz.org> wrote:
>
> OK, here is the ugliest workaround you've seen all day.
Testing your code on my server, I have a few observations.
1) it worked for me BUT I don't have mysqli compiled into this server,
so I wrote a dummy mysqli class
2) PHP complained that the __construct() function was private -- why
is it private?
So I'm guessing that mysqli steps on your destruct() function, and/or
the private construct() is weird-making.
More information about the talk
mailing list