From: choover at rdg dot com Operating system: Linux 2.6.9-22.0.1 PHP version: 4.4.1 PHP Bug Type: Apache2 related Bug description: .htaccess "Action" no longer executes PHP page
Description: ------------ A script under Apache2 using PHP 4.3.11 as an Apache 2 Handler that was called from a .htaccess file using the AddHandler and Action statements worked fine. The 4.4.1 version of PHP with the same configuration no longer executes the page and gives no errors. We changed the php.ini with cgi.fix_pathinfo=1 and made the appropriate modifications to httpd.conf to fix the issue. Still no luck. Reproduce code: --------------- #.htaccess file Addtype text/xml .phpx AddHandler phpx-file-handler .phpx Action phpx-file-handler /lib/phpx.php DirectoryIndex index.phpx index.php Create the phpx.php file: <? session_start(); echo "Passed Path :".$_SERVER["PATH_INFO"]; session_write_close(); ?> Create a file with .phpx as extension: <?xml version="1.0"?> <Document> </Document> Expected result: ---------------- This url represents the expected result:http://emd11.medianext.com/quango/websites/rdg/index.phpx Apache redirects the .phpx file to the /lib/phpx.php page for processing and outputs results. Actual result: -------------- This is the non-working one: http://quangoweb.medianext.com/websites/rdg/index.phpx There are NO errors in our logs: /var/log/httpd/error_log /var/log/error_php And no $_SERVER variables are being set on the phpx.php page. However, calling the page by itself: http://quangoweb.medianext.com/lib/phpx.php Show that it does run. -- Edit bug report at http://bugs.php.net/?id=35199&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35199&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35199&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35199&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35199&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35199&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35199&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35199&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35199&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35199&r=support Expected behavior: http://bugs.php.net/fix.php?id=35199&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35199&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35199&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35199&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35199&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35199&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35199&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35199&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35199&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35199&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35199&r=mysqlcfg