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

2008-03-11 Thread Pierre Joye
On Tue, Mar 11, 2008 at 11:17 AM, Scott McNaught [Synergy 8] [EMAIL PROTECTED] wrote: 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

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

2008-03-11 Thread Alexey Zakhlestin
On 3/11/08, Scott McNaught [Synergy 8] [EMAIL PROTECTED] wrote: 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

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

2008-03-11 Thread Scott McNaught [Synergy 8]
: 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: Hey guys, I don't know whether to post this as a bug

[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: ?php var_dump('*' == 0); ? Shows boolean(true). I was

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

2008-03-11 Thread Antony Dovgal
On 11.03.2008 13:17, Scott McNaught [Synergy 8] wrote: 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?