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
 [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: Sun Dec 22 05:01:30 2024 UTC