On 29 Aug 2014, at 01:43, Alain Williams <a...@phcomp.co.uk> wrote:

> I notice that in the precedence chart the new **= operator is missing:
> 
> http://uk1.php.net/manual/en/language.operators.precedence.php

It’s not on docs.php.net either, so the manual must just be out-of-date.

> The announcement (below) says that it is right associative, but the precedent
> chart above says that it is left associative. From the example it seems to be
> right associative.
> 
> http://php.net/migration56.new-features

Yeah, that’s weird. If we check the actual PHP source, we see it is 
right-associative:

https://github.com/php/php-src/blob/a8b97086d7c5bd5df5243d11bb8b5e9406a2b6c2/Zend/zend_language_parser.y#L112

And I distinctly recall the RFC saying it was right-associative.
--
Andrea Faulds
http://ajf.me/





--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to