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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
15 - 14 = ?
Subscribe to this entry?

 
 [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: Tue Dec 03 17:01:29 2024 UTC