Re: PHP 4.0 Bug #6117 Updated: next() fails when it reaches a "0" key

From: Date: Fri, 11 Aug 2000 19:02:30 +0000
Subject: Re: PHP 4.0 Bug #6117 Updated: next() fails when it reaches a "0" key
Groups: php.dev 
Request: Send a blank email to php-dev+get-28644@lists.php.net to get a copy of this message
RB>> Actually, the integer key 0 should not be equivalent to the RB>> boolean value 'false'. In PHP, when using == operator, it is. Life sux, heh? :) RB>> Further, for and foreach are synonimous constructs, and syntactic sugar No they aren't. for is for, and foreach is foreach. RB>> should not produce differing results. When it comes down to run time RB>> compilation both of these constructs should act the same. Why is it? RB>> Therefore, this IS a bug, and instead of dismissing it and closing it RB>> immediately, maybe it should be noted for a fix in a future revision. RB>> No it isn't. If you don't like it, submit a feature request. -- Stanislav Malyshev stas@zend.com +972-3-6139665 ext.106

« previous php.dev (#28644) next »