ID: 46338 User updated by: spam at pamignot dot org Reported By: spam at pamignot dot org -Status: Verified +Status: Closed Bug Type: Scripting Engine problem Operating System: Irrelevant PHP Version: 5.3.0alpha3-dev New Comment:
Ok, sorry for the noise. Duplicate bug closed, just see : http://bugs.php.net/46241 Previous Comments: ------------------------------------------------------------------------ [2008-10-21 15:36:53] [EMAIL PROTECTED] Yeah, these are most definitely duplicates. (Doesn't know how to close a bug as a dupe). ------------------------------------------------------------------------ [2008-10-21 06:35:17] clemens dot kalb at netlogix dot de Setting the error handler twice does indeed seem to be the problem. I can reproduce this with 5.3 alpha3-dev Build Date Oct 19 2008 04:42:11. See #46241 for a possible duplicate of this entry. ------------------------------------------------------------------------ [2008-10-20 19:00:28] [EMAIL PROTECTED] Oh, also, I tested it on the latest alpha3-dev build. php --version PHP 5.3.0alpha3-dev (cli) (built: Oct 20 2008 20:49:57) Copyright (c) 1997-2008 The PHP Group Zend Engine v2.3.0, Copyright (c) 1998-2008 Zend Technologies ------------------------------------------------------------------------ [2008-10-20 18:54:55] [EMAIL PROTECTED] I believe this is a problem with the error handler stack. I get "zend_mm_heap corrupted" when I set the error handler twice. <?php function mute() {} set_error_handler('mute'); set_error_handler('mute'); ------------------------------------------------------------------------ [2008-10-20 18:02:06] spam at pamignot dot org Here's the code. I notified HTMLPurifier developpers, since I think the problem comes from the library. <?php class myException extends Exception { public static function exception_error_handler($errno, $errstr, $errfile, $errline){} } require 'tools/htmlpurifier/library/HTMLPurifier.auto.php'; $filterObj = new HTMLPurifier; $someVar = $filterObj->purify('something'); set_error_handler(array('myException', 'exception_error_handler')); ?> ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/46338 -- Edit this bug report at http://bugs.php.net/?id=46338&edit=1