ID: 46338
Comment by: clemens dot kalb at netlogix dot de
Reported By: spam at pamignot dot org
Status: Verified
Bug Type: Scripting Engine problem
Operating System: Irrelevant
PHP Version: 5.3.0alpha3-dev
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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'));
?>
------------------------------------------------------------------------
[2008-10-20 15:51:12] [EMAIL PROTECTED]
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc. If the script requires a
database to demonstrate the issue, please make sure it creates
all necessary tables, stored procedures etc.
Please avoid embedding huge scripts into the report.
------------------------------------------------------------------------
[2008-10-18 21:52:49] spam at pamignot dot org
Surely not related to Apache2, but maybe GC (?), deplaced in
Unknown/Other.
------------------------------------------------------------------------
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