From: info at dysfunksion dot co dot uk Operating system: Windows PHP version: 4.3.3 PHP Bug Type: *General Issues Bug description: $_SERVER['PATH_INFO'] not being set under IIS
Description: ------------ Under IIS, PHP (isapi module) does not set the $_SERVER['PATH_INFO'] variable. Also, all requests to a path similar to: index.php/my/path/info Throws errors similar to: Warning: Unknown(C:\Development\index.php\my\path\info): failed to open stream: No such file or directory in Unknown on line 0 Warning: (null)(): Failed opening 'C:\Development\index.php\my\path\info' for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0 This functionality works with Apache and PHP on windows. There are patches to enable this functionality, though it has not been maintained since version 4.2.3. Reproduce code: --------------- <?php // Request url similar to // index.php/my/path/info exit($_SERVER['PATH_INFO']; ?> Expected result: ---------------- /my/path/info Actual result: -------------- Warning: Unknown(C:\Development\index.php\my\path\info): failed to open stream: No such file or directory in Unknown on line 0 Warning: (null)(): Failed opening 'C:\Development\index.php\my\path\info' for inclusion (include_path='.;c:\php4\pear') in Unknown on line 0 -- Edit bug report at http://bugs.php.net/?id=26605&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26605&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26605&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26605&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26605&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26605&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26605&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26605&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26605&r=support Expected behavior: http://bugs.php.net/fix.php?id=26605&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26605&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26605&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26605&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26605&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26605&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26605&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26605&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26605&r=float