com php-langspec: Use variable in RHS of byref-assignment: spec/10-expressions.md spec/19-grammar.md

[email protected] (Nikita Popov) Tue, 19 Sep 2017 03:51:56 +0000
Newsgroups php.standards.cvs
Message-ID <[email protected]>
Commit:    4b8e976b52c339a0436ca6c0120c6cdf07c52106=0AAuthor:    Nikita Pop=
ov <[email protected]>         Tue, 19 Sep 2017 05:49:31 +0200=0AParents:   808=
2f0911ad18da427d2920599d06a1a0632edbc=0ABranches:  master=0A=0ALink:       =
http://git.php.net/?p=3Dphp-langspec.git;a=3Dcommitdiff;h=3D4b8e976b52c339a=
0436ca6c0120c6cdf07c52106=0A=0ALog:=0AUse variable in RHS of byref-assignme=
nt=0A=0AChanged paths:=0A  M  spec/10-expressions.md=0A  M  spec/19-grammar=
.md=0A=0A=0ADiff:=0Adiff --git a/spec/10-expressions.md b/spec/10-expressio=
ns.md=0Aindex e99a4a3..c29629f 100644=0A--- a/spec/10-expressions.md=0A+++ =
b/spec/10-expressions.md=0A@@ -3116,18 +3116,18 @@ $a =3D new C; // make $a=
 point to the allocated object=0A =0A <!-- GRAMMAR=0A byref-assignment-expr=
ession:=0A-  variable '=3D' '&' assignment-expression=0A+  variable '=3D' '=
&' variable=0A -->=0A =0A <pre>=0A <i id=3D"grammar-byref-assignment-expres=
sion">byref-assignment-expression:</i>=0A-   <i><a href=3D"#grammar-variabl=
e">variable</a></i>   =3D   &amp;   <i><a href=3D"#grammar-assignment-expre=
ssion">assignment-expression</a></i>=0A+   <i><a href=3D"#grammar-variable"=
>variable</a></i>   =3D   &amp;   <i><a href=3D"#grammar-variable">variable=
</a></i>=0A </pre>=0A =0A **Constraints**=0A =0A-*assignment-expression* mu=
st be an lvalue or a call to a function that=0A-returns a value byRef.=0A+T=
he right-hand-side *variable* must be an lvalue or a call to a function=0A+=
that returns a value byRef.=0A =0A **Semantics**=0A =0Adiff --git a/spec/19=
-grammar.md b/spec/19-grammar.md=0Aindex 6f17c92..0cc0a9a 100644=0A--- a/sp=
ec/19-grammar.md=0A+++ b/spec/19-grammar.md=0A@@ -673,7 +673,7 @@ The gramm=
ar notation is described in [Grammars section](09-lexical-structure.md#=0A =
   <i><a href=3D"#grammar-list-intrinsic">list-intrinsic</a></i>   =3D   <i=
><a href=3D"#grammar-assignment-expression">assignment-expression</a></i>=
=0A =0A <i id=3D"grammar-byref-assignment-expression">byref-assignment-expr=
ession:</i>=0A-   <i><a href=3D"#grammar-variable">variable</a></i>   =3D  =
 &amp;   <i><a href=3D"#grammar-assignment-expression">assignment-expressio=
n</a></i>=0A+   <i><a href=3D"#grammar-variable">variable</a></i>   =3D   &=
amp;   <i><a href=3D"#grammar-variable">variable</a></i>=0A =0A <i id=3D"gr=
ammar-compound-assignment-expression">compound-assignment-expression:</i>=
=0A    <i><a href=3D"#grammar-variable">variable</a></i>   <i><a href=3D"#g=
rammar-compound-assignment-operator">compound-assignment-operator</a></i>  =
 <i><a href=3D"#grammar-assignment-expression">assignment-expression</a></i=
>=0A