#35771 [Opn->Fbk]: ErrorDocument HTML Page with PHP Code -> Segfault

From: Date: Thu, 22 Dec 2005 10:55:15 +0000
Subject: #35771 [Opn->Fbk]: ErrorDocument HTML Page with PHP Code -> Segfault
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90884@lists.php.net to get a copy of this message
 ID:               35771
 Updated by:       tony2001@php.net
 Reported By:      daniel dot sand at pixelpark dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         Apache2 related
 Operating System: Solaris
 PHP Version:      5.1.1
 New Comment:

Please try using this CVS snapshot:

  http://snaps.php.net/php5.1-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php5.1-win32-latest.zip




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

[2005-12-22 11:51:40] daniel dot sand at pixelpark dot com

Description:
------------
Under Apache 2.0.55 with PHP 5.1.1 ( and PHP 5.1.0RC1 ) and defined
ErrorDocument 404 html page with treating .html like PHP segfaults
apache child.


Reproduce code:
---------------
Under Apache 2.x with PHP 5.1.1 set in 

Apache Config:

ErrorDocument 404 /error/HTTP_NOT_FOUND.html

AddType application/x-httpd-php .php .php4 .html .htm

touch the file and put some example code in it:

<html><body><?php echo phpinfo();?></body></html>

start up apache and call some not existing page on the Webserver:

nothing much happens and in the error log you see that the apache child
segfaults:

[Thu Dec 22 11:15:58 2005] [notice] child pid 25725 exit signal
Segmentation fault (11)

Expected result:
----------------
It should return an Errorpage with the correct content of the File.

Actual result:
--------------
Segfault of the Apache Child


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


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


Thread (3 messages)

« previous php.bugs (#90884) next »