Re: Documentation error
| From: | Andrea Faulds | Date: | Fri, 29 Aug 2014 00:55:12 +0000 |
| Subject: | Re: Documentation error | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-76939@lists.php.net to get a copy of this message | ||
On 29 Aug 2014, at 01:43, Alain Williams <addw@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/