php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17553 Memleak in set_error_handle() when using empty string
Submitted: 2002-06-01 11:24 UTC Modified: 2002-06-17 09:21 UTC
From: mfischer@php.net Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0CVS-2002-06-01 OS: Any
Private report: No CVE-ID: None
View Add Comment Developer Edit
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:
18 + 50 = ?
Subscribe to this entry?

 
 [2002-06-01 11:24 UTC] mfischer@php.net
<?
	set_error_handler('baz');
	set_error_handler('');
?>

$ php error_reporting.php 
/home/mfischer/isrc/cvs/php4/Zend/zend_builtin_functions.c(864) :  Freeing 0x0822A1E4 (4 bytes), script=-
/home/mfischer/isrc/cvs/php4/Zend/zend_variables.c(106) : Actual location (location was relayed)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-01 11:25 UTC] mfischer@php.net
Configured with --enable-debug, nothing else.
 [2002-06-17 09:21 UTC] hholzgra@php.net
set_error_handler() now checks for its argument to be a valid callback function, no more leaks
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jul 23 23:01:30 2024 UTC