PHP :: Bug #41608 :: user error handler crashes
| Bug #41608 | user error handler crashes | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2007-06-06 07:44 UTC | Modified: | 2009-09-27 14:27 UTC |
|
||||||||||
| From: | aigors at inbox dot lv | Assigned: | dmitry (profile) | |||||||||||
| Status: | Wont fix | Package: | Reproducible crash | |||||||||||
| PHP Version: | 5.2.10 | OS: | Windows XP | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2007-06-06 07:44 UTC] aigors at inbox dot lv
Description:
------------
Apache crash because of script containing set_error_handler function.
Reproduce code:
---------------
/***Main php file***/
<?php
function MyErrorHandler($errno, $errstr, $errfile, $errline){
include_once('empty.php');
}
set_error_handler("MyErrorHandler");
include_once('blah.php');
echo('I am done');
?>
/***blah.php file***/
<?php
class Blah {
function foo($value, $classname) {
switch(strtolower($value['key'])) {
default: $x = &new $classname;
}
}
}
?>
/***empty.php file - no content***/
Expected result:
----------------
Should output "I am done"
Actual result:
--------------
Apache crash
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2007-06-06 08:35 UTC] tony2001@php.net
[2007-12-18 09:47 UTC] aigors at inbox dot lv
[2008-01-15 07:29 UTC] aigors at inbox dot lv
[2008-01-26 01:07 UTC] jani@php.net
[2008-02-09 01:14 UTC] stas@php.net
[2008-08-13 20:09 UTC] jani@php.net
[2009-06-15 09:18 UTC] aigors at inbox dot lv
[2009-06-15 09:26 UTC] aigors at inbox dot lv
[2009-06-29 10:57 UTC] tony2001@php.net
[2009-06-29 13:54 UTC] dmitry@php.net
[2009-07-23 11:47 UTC] svoboda at svoon dot net
[2009-09-25 23:25 UTC] aigors at inbox dot lv