php.net |  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: nlopess@php.net 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.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: nlopess@php.net
New email:
PHP Version: OS:

 

 [2004-10-31 17:00 UTC] nlopess@php.net
Description:
------------
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:
---------------
<?

error_reporting(E_ALL);

function a ($var){}

a(@$abc);

?>

Expected result:
----------------
nothing

Actual result:
--------------
Notice: Undefined variable: abc

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-11-01 00:34 UTC] derick@php.net
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