From: peter dot kling at veritas dot com Operating system: solaris 8 PHP version: 4.3.1 PHP Bug Type: Apache related Bug description: php_value auto_prepend in .htaccess ignored when loading a index.html
This function worked with Apache/1.3.26 and PHP Version 4.2.2 running on SunOS goldeneyes 5.8 Generic sun4u sparc SUNW,Ultra-4 Since we upgrade to PHP Version 4.3.1 this does not work. we have .htaccess files in directories that just have the following two lines: ----Start--- php_value auto_prepend_file "/vfr/htdocs/jscode/menuheader.html" php_value auto_append_file "/vfr/htdocs/jscode/reg_footer.html" ----End--- So then if you access a file like index.html or somename.html in that directory the page would load with the menuheader.html and the reg_footer.html force on that page. We use this to keep a constant look and feel on this site. Since we upgrade to PHP Version 4.3.1 this does not work. I've noted bugs reported for Apache 2.x but not 1.3x could you please look at the code and see if you can find this bug. The short fix is for us to rename every .html file to a .php file and it works, but renaming 1000s of files is a bit much. Thanks peter PS: note I have reproduced this bug on FreeBSD 4.x also. -- Edit bug report at http://bugs.php.net/?id=22791&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22791&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22791&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22791&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22791&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22791&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22791&r=support Expected behavior: http://bugs.php.net/fix.php?id=22791&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22791&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22791&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22791&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22791&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22791&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22791&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22791&r=gnused