|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30629 @ doesn't supress notices of undefined vars
Submitted: 2004-10-31 17:00 UTC Modified: 2004-11-01 00:34 UTC
From: Assigned:
Status: Not a bug Package: Variables related
PHP Version: 5CVS-2004-10-31 (dev) OS: n/a
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
New email:
PHP Version: OS:


 [2004-10-31 17:00 UTC]
There is a BC break in the @ operator from PHP 4 to 5.

While PHP 4 doesn't output anything with supplied script (the correct thing), PHP 5 echoes a notice.

Reproduce code:


function a ($var){}



Expected result:

Actual result:
Notice: Undefined variable: abc


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-01 00:34 UTC]
This was never supposed to work, so no bug here.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue May 21 14:01:33 2024 UTC