RE: [PHP-DEV] Comparison: ('*' == 0) ... True or false

2008-03-11 Thread Scott McNaught [Synergy 8]
ierre Joye [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 11, 2008 8:25 PM To: Scott McNaught [Synergy 8] Cc: internals@lists.php.net Subject: Re: [PHP-DEV] Comparison: ('*' == 0) ... True or false On Tue, Mar 11, 2008 at 11:17 AM, Scott McNaught [Synergy 8] <[EMAIL PROTECTED]> wrote: &g

[PHP-DEV] Comparison: ('*' == 0) ... True or false

2008-03-11 Thread Scott McNaught [Synergy 8]
Hey guys, I don’t know whether to post this as a bug or not. But I was tricked when programming today. It seems that the character "*" is non-strictly equivalent to 0. Is this the correct behavior or am I missing something? Test case: Shows boolean(true). I was unable to find any documen

Re: [PHP-DEV] Native Singleton Implementation

2007-03-10 Thread scott . mcnaught
> > <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> Yeah that's the same way that I implement it. You're still using >> strings >> for referencing class names. > > So what? Is there an alternative method? Does it have any advantages? Yes! Moving the singleton functionality into c