Re: [PHP-DEV] Documentation error

[email protected] (Andrea Faulds)
Newsgroups php.internals
Message-ID <[email protected]>
On 29 Aug 2014, at 01:43, Alain Williams <[email protected]> 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.