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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: mausglov at yandex dot ru
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Wed Oct 07 11:00:02 2026 UTC