#27954 [NEW]: PATH_INFO no longer works
| From: | demis at liquidbit dot com | Date: | Sun, 11 Apr 2004 21:52:43 +0000 |
| Subject: | #27954 [NEW]: PATH_INFO no longer works | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-57932@lists.php.net to get a copy of this message | ||
From: demis at liquidbit dot com
Operating system: WINDOWS
PHP version: 4.3.5
PHP Bug Type: *General Issues
Bug description: PATH_INFO no longer works
Description:
------------
I cannot get PATH_INFO working on Windows XP/IIS so I can show pages like
this:
http://localhost/myapp/login.php/ADMIN
Changes to php.ini
doc_root = "C:\Inetpub\wwwroot"
cgi.force_redirect = 0
cgi.fix_pathinfo = 1
I have tried different values with these three config options and none
work. I have already applied the configuration to get IIS to accept path
info:
adsutil set w3svc/AllowPathInfoForScriptMappings True
The Error:
Warning: Unknown(c:\inetpub\wwwroot\ADMIN): failed to open stream: No such
file or directory in Unknown on line 0
It appears php does not like to call my login script and prefers to
instead run the imaginary script path_info "ADMIN" thats on my doc_root
NOTE:
- Im using the windows binaries, compiling php with
--enable-path-info-check may help - if its not already I hope this is the
default with the windows binaries
- I have tried IIS with php CGI and isapi no joy.
- This setup works with apache and therefore solutions beginning with
"Just use apache" are entertaining, they are not very helpful.
Expected result:
----------------
run my login.php script with the appropriate PATH_INFO variables fixed
Actual result:
--------------
The Error:
Warning: Unknown(c:\inetpub\wwwroot\ADMIN): failed to open stream: No such
file or directory in Unknown on line 0
--
Edit bug report at http://bugs.php.net/?id=27954&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=27954&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=27954&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=27954&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=27954&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=27954&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=27954&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=27954&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=27954&r=support
Expected behavior: http://bugs.php.net/fix.php?id=27954&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=27954&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=27954&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=27954&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=27954&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=27954&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=27954&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=27954&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=27954&r=float