[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-bugs
Subject: [DOC-BUGS] Doc #68804 [Com]: Assign by ref operator is missing in precedence table
From: "cmbecker69 at gmx dot de" <php-bugs () lists ! php ! net>
Date: 2015-02-20 21:40:40
Message-ID: 201502202140.t1KLeejD018807 () sgrv20 ! php ! net
[Download RAW message or body]
Edit report at https://bugs.php.net/bug.php?id=68804&edit=1
ID: 68804
Comment by: cmbecker69 at gmx dot de
Reported by: sectus at mail dot ru
Summary: Assign by ref operator is missing in precedence
table
Status: Open
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Related to #69091[1].
[1] <https://bugs.php.net/bug.php?id=69091>
Previous Comments:
------------------------------------------------------------------------
[2015-01-12 03:28:09] sectus at mail dot ru
Description:
------------
It seems that documentation is not clear about references.
There is no mentioning about `assign by ref` \
operator(http://php.net/manual/en/language.operators.precedence.php). And its \
precedence is higher than `instanceof`.
Also, there is exists mentioning of `left | & | bitwise and references`. What is a \
meaning of `references` in this line?
Test script:
---------------
$a = &$b instanceof stdClass;
$c = $d instanceof stdClass;
// line # * op fetch ext return operands
// -------------------------------------------------------------------------
// 3 0 > ASSIGN_REF $0 !0, !1
// 1 FETCH_CLASS 84 :1 'stdClass'
// 2 INSTANCEOF ~2 $0, $1
// 3 FREE ~2
// 4 4 FETCH_CLASS 84 :3 'stdClass'
// 5 INSTANCEOF ~4 !3, $3
// 6 ASSIGN !2, ~4
// 7 > RETURN 1
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=68804&edit=1
--
PHP Documentation Bugs Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic