php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27877 error_reporting sets to 0 after @
Submitted: 2004-04-06 02:46 UTC Modified: 2004-04-06 03:44 UTC
From: oleg at e-kazan dot ru Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.3.6RC1 OS: Linux RedHat 8.0
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: oleg at e-kazan dot ru
New email:
PHP Version: OS:

 

 [2004-04-06 02:46 UTC] oleg at e-kazan dot ru
Description:
------------
error_reporting sets to 0 after @

Reproduce code:
---------------
<?
	error_reporting(E_ALL);

	function a()
	{
		@$a = 1;	
	};

	var_dump(error_reporting());

	a();

	var_dump(error_reporting());
?>

Expected result:
----------------
int(2047)
int(2047)

Actual result:
--------------
int(2047)
int(0)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-06 03:44 UTC] oleg at e-kazan dot ru
It works correctly.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun May 22 05:05:45 2022 UTC