Doc #68804 [Com]: Assign by ref operator is missing in precedence table

From: Date: Fri, 20 Feb 2015 21:40:40 +0000
Subject: Doc #68804 [Com]: Assign by ref operator is missing in precedence table
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11958@lists.php.net to get a copy of this message
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

« previous php.doc.bugs (#11958) next »