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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-04-06 03:44 UTC] oleg at e-kazan dot ru
It works correctly.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 12 08:01:27 2024 UTC