php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #64676 Unclear behavior of @-operator on non-expressions
Submitted: 2013-04-19 20:43 UTC Modified: 2013-10-23 08:40 UTC
From: mausglov at yandex dot ru Assigned:
Status: Not a bug Package: Documentation problem
PHP Version: 5.4.14 OS: any
Private report: No CVE-ID: None
 [2013-04-19 20:43 UTC] 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2013-10-23 08:40 UTC] krakjoe@php.net
-Status: Open +Status: Not a bug
 [2013-10-23 08:40 UTC] krakjoe@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 04:01:34 2024 UTC