From: phpbugs at pajunas dot net Operating system: FreeBSD 5.2.x PHP version: 4.3.6 PHP Bug Type: Apache2 related Bug description: .htaccess settings missing
Description: ------------ After several months of proper behavior and no system changes, apache2/php are no longer consistently applying php_value and php_flag settings from .htaccess files. I create a .htaccess file including the following settings (which differ from their php.ini values): php_flag display_errors On php_flag register_globals On Between 5-10% of web requests do not take these settings into account. A phpinfo() script, reloaded repeatedly produces the php.ini (and not the .htaccess) values some of the time, and scripts relying on these settings occasionally break. This began occurring without warning, and may related to the addition of ~12 VirtualHosts to apache ./configure' '--enable-versioning' '--enable-memory- limit' '--with-layout=GNU' '--with-zlib-dir=/usr' '-- disable-all' '--with-regex=php' '--with-pear' '--enable- bcmath' '--with-bz2=/usr' '--enable-calendar' '--with- cdb' '--with-crack=/usr/local' '--enable-ctype' '--with- curl=/usr/local' '--with-db4=/usr/local' '--enable-dba' '--enable-dbx' '--enable-dio' '--with-dom=/usr/local' '--with-dom-xslt=/usr/local' '--with-dom-exslt=/usr/ local' '--enable-exif' '--enable-ftp' '--with-gd' '-- enable-gd-native-ttf' '--enable-gd-jis-conv' '--with- freetype-dir=/usr/local' '--with-t1lib=/usr/local' '-- with-jpeg-dir=/usr/local' '--with-png-dir=/usr/local' '--with-gdbm=/usr/local' '--with-gettext=/usr/local' '-- with-iconv-dir=/usr/local' '--with-iconv=/usr/local' '-- with-inifile' '--with-java=/usr/local/jdk1.4.2' '-- enable-mbstring' '--with-mcal=/usr/local' '--with- mcrypt=/usr/local' '--with-mhash=/usr/local' '--with- mime-magic=/usr/share/misc/magic.mime' '--with-ming=/ usr/local' '--with-mm=/usr/local' '--with-mnogosearch=/ usr/local' '--with-mysql=/usr/local' '--with-ldap=/usr/ local' '--with-openssl-dir=/usr' '--with-openssl=/usr' '--enable-overload' '--with-pcre-regex=yes' '--with- pdflib=/usr/local' '--enable-posix' '--with-pgsql=/usr/ local' '--with-pspell=/usr/local' '--enable-session' '-- enable-shmop' '--enable-sockets' '--enable-sysvsem' '-- enable-sysvshm' '--enable-tokenizer' '--with-unixODBC=/ usr/local' '--enable-wddx' '--with-expat-dir=/usr/local' '--enable-xml' '--with-xmlrpc' '--enable-xslt' '--with- xslt-sablot=/usr/local' '--with-zip=/usr/local' '--with- zlib=yes' '--with-apxs2=/usr/local/sbin/apxs' '--with- imap=/usr/local' '--with-imap-ssl=/usr/local' '--with- snmp=/usr/local' '--enable-ucd-snmp-hack' '--prefix=/ usr/local' 'i386-portbld-freebsd5.2' -- Edit bug report at http://bugs.php.net/?id=28522&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28522&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28522&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=28522&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=28522&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=28522&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=28522&r=needscript Try newer version: http://bugs.php.net/fix.php?id=28522&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=28522&r=support Expected behavior: http://bugs.php.net/fix.php?id=28522&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=28522&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=28522&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=28522&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28522&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=28522&r=dst IIS Stability: http://bugs.php.net/fix.php?id=28522&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=28522&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=28522&r=float