Bug #62790 [Com]: Operator "->" missing in operator lists
| From: | gabri dot ns at gmail dot com | Date: | Thu, 24 Oct 2013 10:43:15 +0000 |
| Subject: | Bug #62790 [Com]: Operator "->" missing in operator lists | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10550@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=62790&edit=1
ID: 62790
Comment by: gabri dot ns at gmail dot com
Reported by: matteosistisette at gmail dot com
Summary: Operator "->" missing in operator lists
Status: Not a bug
Type: Bug
Package: Documentation problem
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
even the array operator "[" is documented...
Previous Comments:
------------------------------------------------------------------------
[2013-10-24 09:10:29] matteosistisette at gmail dot com
(forget the part about the parse error; the rest is still valid)
------------------------------------------------------------------------
[2013-10-24 09:08:37] matteosistisette at gmail dot com
Or do you need an example? Here it is:
<?php
class Test {
public $foo=1;
public $bar=2;
public $foobar="3";
}
$p1="foo";
$p2="bar";
$test=new Test();
echo $test->$p1.$p2;
How is one supposed to know (other than by trying) that the output will be "1bar" and not
"3"? (not to mention that it will produce a parse error prior to 5.0)
------------------------------------------------------------------------
[2013-10-24 08:58:53] matteosistisette at gmail dot com
@krakjoe Would you expand a little bit?
An operator is missing in the list that documents operator precedence, so there is no way to know
what is the precedence of that operator compared to others.
What's the part that you don't understand? What doesn't make sense to you? Why should
it be ok that the precedence of that operatos is not documented?
------------------------------------------------------------------------
[2013-10-24 06:52:53] krakjoe@php.net
The question doesn't make any sense, closing the bug.
------------------------------------------------------------------------
[2013-03-25 19:16:46] jschoett at gmail dot com
It's the so called "object operator" (T_OBJECT_OPERATOR), which is missing.
According to doc comment http://www.php.net/manual/en/language.operators.php#86566
Please fix this -- I really want to know which precedence this operator has!
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=62790
--
Edit this bug report at https://bugs.php.net/bug.php?id=62790&edit=1