Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:13141 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 79426 invoked by uid 1010); 4 Oct 2004 14:55:27 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 77421 invoked by uid 1007); 4 Oct 2004 14:55:04 -0000 Message-ID: <20041004145504.77420.qmail@pb1.pair.com> To: internals@lists.php.net Date: Mon, 04 Oct 2004 16:54:30 +0200 Organization: IWORKS User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.2) Gecko/20040803 [ http://iworks.at ] X-Accept-Language: de-AT, de-DE, de, en-GB, en-US, en MIME-Version: 1.0 References: <20041004143916.GA19506@romulus.a-s-i.com> In-Reply-To: <20041004143916.GA19506@romulus.a-s-i.com> X-Enigmail-Version: 0.86.0.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig705EC2BB562354A6EF8AC697" X-Posted-By: 80.121.40.200 Subject: Re: Odd reference => global bug? From: mike@php.net (Michael Wallner) --------------enig705EC2BB562354A6EF8AC697 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi Bob Glamm, you wrote: [...] Seems to be the same bug as in: function singleton() { static $instance; if (!isset($instance)) { $instance = &new SomeClass; } return $instance; } If you use "&new" notation in your script, you'll see that $x will be NULL, too. Regards, -- Michael - < mike(@)php.net > --------------enig705EC2BB562354A6EF8AC697 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (Cygwin) iD8DBQFBYWQq2pTtEijQyW0RAs5zAJ9/Kojc2serzVn5zC7E/fmUN+SQ/gCgjbnn uR71WXU8cxGxAVHYGWnyOLE= =ZuUL -----END PGP SIGNATURE----- --------------enig705EC2BB562354A6EF8AC697--