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
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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Sun Jun 01 07:01:27 2025 UTC