#35771 [Fbk-Csd]: ErrorDocument HTML Page with PHP Code - Segfault
ID: 35771 User updated by: daniel dot sand at pixelpark dot com Reported By: daniel dot sand at pixelpark dot com -Status: Feedback +Status: Closed Bug Type: Apache2 related Operating System: Solaris PHP Version: 5.1.1 New Comment: i took the sapi/apache2handler/sapi_apache2.c from php5.1-latest and it fixed the bug. thx a lot. Previous Comments: [2005-12-22 11:55:14] [EMAIL PROTECTED] 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 [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: htmlbody?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=35771edit=1
#35771 [NEW]: ErrorDocument HTML Page with PHP Code - Segfault
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: htmlbody?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=35771edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=35771r=trysnapshot44 Try a CVS snapshot (PHP 5.1): http://bugs.php.net/fix.php?id=35771r=trysnapshot51 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=35771r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=35771r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35771r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35771r=needtrace Need Reproduce Script:http://bugs.php.net/fix.php?id=35771r=needscript Try newer version:http://bugs.php.net/fix.php?id=35771r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35771r=support Expected behavior:http://bugs.php.net/fix.php?id=35771r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35771r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35771r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35771r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35771r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35771r=dst IIS Stability:http://bugs.php.net/fix.php?id=35771r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35771r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35771r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35771r=nozend MySQL Configuration Error:http://bugs.php.net/fix.php?id=35771r=mysqlcfg