Doc #64676 [Opn->Nab]: Unclear behavior of @-operator on non-expressions
| From: | krakjoe@php.net | Date: | Wed, 23 Oct 2013 08:40:44 +0000 |
| Subject: | Doc #64676 [Opn->Nab]: Unclear behavior of @-operator on non-expressions | ||
| References: | 1 | Groups: | php.doc.bugs |
| Request: | Send a blank email to doc-bugs+get-10531@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=64676&edit=1
ID: 64676
Updated by: krakjoe@php.net
Reported by: mausglov at yandex dot ru
Summary: Unclear behavior of @-operator on non-expressions
-Status: Open
+Status: Not a bug
Type: Documentation Problem
Package: Documentation problem
Operating System: any
PHP Version: 5.4.14
Block user comment: N
Private report: N
New Comment:
You should expect the parser to emit an error when invalid syntax is used !!
I do not see a reason to change the documentation, it is precise enough about where it can and can
not be used, and is correct.
Thanks for your input.
Previous Comments:
------------------------------------------------------------------------
[2013-04-19 20:43:02] mausglov at yandex dot ru
Description:
------------
---
From manual page: http://www.php.net/language.operators.errorcontrol
---
Documentation tells: "The @-operator works only on expressions".
But what if the subject of @-operator is not an expression?
In fact, it isn't silently skipped by PHP engine, - instead it causes parse error!
Add this to the documentation page, please.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64676&edit=1