#41608 [Opn->Asn]: Apache crash because of script

From: Date: Wed, 06 Jun 2007 08:23:54 +0000
Subject: #41608 [Opn->Asn]: Apache crash because of script
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-113448@lists.php.net to get a copy of this message
 ID:               41608
 Updated by:       tony2001@php.net
 Reported By:      aigors at inbox dot lv
-Status:           Open
+Status:           Assigned
 Bug Type:         Reproducible crash
 Operating System: Windows XP
 PHP Version:      5.2.3
-Assigned To:      
+Assigned To:      tony2001


Previous Comments:
------------------------------------------------------------------------

[2007-06-06 07:44:20] 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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=41608&edit=1


Thread (19 messages)

« previous php.bugs (#113448) next »