Re: [PHP-DEV] Re: [PHP] ++ BUG?? (fwd) From: Stanislav Malyshev (stas <email protected>)
Date: 11/26/00

IV>> The PHP manual states "C-style ... operators". C only does the
IV>> post(inc|dec) at the end of the statement, not after the expression.

Well, what I found in standard is:

[#2] The result of the postfix ++ operator is the value of
the operand. After the result is obtained, the value of the
operand is incremented. [...] The side effect of updating the
stored value of the operand shall occur between the previous
and the next sequence point.

This does no guarantee of where this "between" happens. And PHP is not C,
anyway :)

-- 
Stanislav Malyshev, Zend Products Engineer   
stas <email protected>  http://www.zend.com/ +972-3-6139665 ext.106

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>