[nycphp-talk] PHP 5 singleton/destructor question
csnyder
chsnyder at gmail.com
Thu Mar 31 16:49:01 EST 2005
On Thu, 31 Mar 2005 16:27:26 -0500 (EST), David Mintz
<dmintz at davidmintz.org> wrote:
> $db = MyDatabase::getInstance();
> print $db->host_info;
> ---
>
> OUTPUT
> constructing MyDatabase...
> localhost via TCP/IP
> ---
>
... and you expect to see "closing..." after the localhost line, right?
Have you tried unset($db); to after print $db->host_info;?
More information about the talk
mailing list