From: martin at itmission dot com Operating system: Windows Server 2003 PHP version: 5.2.1 PHP Bug Type: PHP options/info functions Bug description: Per Directory Values only work for one key
Description: ------------ I am trying to configure multiple websites under IIS using ISAPI. For each site I would like to configure specific PHP directives. My directives only work on the first entry I make (lexicographically, not chronologically). Reproduce code: --------------- Using Regedit Add HKLM\Software\PHP\Per Directory Values\c\inetpub\www1\auto_prepend_file "c:\inetpub\www1\include1.php" Add HKLM\Software\PHP\Per Directory Values\c\inetpub\www2\auto_prepend_file "c:\inetpub\www2\include2.php" Files Create c:\inetpub\www1\include1.php containing "<?php echo('1'); ?>" Create c:\inetpub\www2\include2.php containing "<?php echo('2'); ?>" Create c:\inetpub\www1\index.php containing "<?php echo('hello'); ?>" Create c:\inetpub\www2\index.php containing "<?php echo('hello'); ?>" IIS Make the two sites (www1 and www2) and configure PHP on them. Web Browser Visit http://www1/index.php Visit http://www2/index.php Expected result: ---------------- http://www1/index.php: 1hello http://www2/index.php: 2hello Actual result: -------------- http://www1/index.php: 1hello http://www2/index.php: hello If I delete HKLM\Software\PHP\Per Directory Values\c\inetpub\www1, or rename it to HKLM\Software\PHP\Per Directory Values\c\inetpub\www3 http://www2/index.php changes: 2hello However at that point www1 no longer prepends the file. This is the case with all directives, not just auto_prepend_file. -- Edit bug report at http://bugs.php.net/?id=41192&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=41192&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=41192&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=41192&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=41192&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=41192&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=41192&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=41192&r=needscript Try newer version: http://bugs.php.net/fix.php?id=41192&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=41192&r=support Expected behavior: http://bugs.php.net/fix.php?id=41192&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=41192&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=41192&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=41192&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=41192&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=41192&r=dst IIS Stability: http://bugs.php.net/fix.php?id=41192&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=41192&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=41192&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=41192&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=41192&r=mysqlcfg