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
 [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: Sun May 05 12:01:32 2024 UTC