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

From: Date: Thu, 22 Dec 2005 10:51:42 +0000
Subject: #35771 [NEW]: ErrorDocument HTML Page with PHP Code -> Segfault
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-90866@lists.php.net to get a copy of this message
From:             daniel dot sand at pixelpark dot com
Operating system: Solaris
PHP version:      5.1.1
PHP Bug Type:     Apache2 related
Bug description:  ErrorDocument HTML Page with PHP Code -> Segfault

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 bug report at http://bugs.php.net/?id=35771&edit=1
-- 
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35771&r=trysnapshot44
Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35771&r=trysnapshot51
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35771&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=35771&r=fixedcvs
Fixed in release:             http://bugs.php.net/fix.php?id=35771&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=35771&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=35771&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=35771&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=35771&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=35771&r=notwrong
Not enough info:              http://bugs.php.net/fix.php?id=35771&r=notenoughinfo
Submitted twice:              http://bugs.php.net/fix.php?id=35771&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=35771&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=35771&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=35771&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=35771&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=35771&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=35771&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=35771&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=35771&r=mysqlcfg


Thread (3 messages)

« previous php.bugs (#90866) next »