php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #26605 $_SERVER['PATH_INFO'] not being set under IIS
Submitted: 2003-12-12 11:10 UTC Modified: 2004-02-16 23:49 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:1 of 1 (100.0%)
Same Version:0 (0.0%)
Same OS:1 (100.0%)
From: info at dysfunksion dot co dot uk Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.3.3 OS: Windows
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: info at dysfunksion dot co dot uk
New email:
PHP Version: OS:

 

 [2003-12-12 11:10 UTC] info at dysfunksion dot co dot uk
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

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-18 07:02 UTC] info at dysfunksion dot co dot uk
Sorry, unable to use CVS snap-shots on my live machine due to standard-operating-procedures set by my predacessor.

Will this be worked into the stable releases?
 [2003-12-18 16:38 UTC] sniper@php.net
Please do not submit the same bug more than once. An existing
bug report already describes this very problem. Even if you feel
that your issue is somewhat different, the resolution is likely
to be the same. 

Thank you for your interest in PHP.

See bug #7782

 [2003-12-19 06:04 UTC] info at dysfunksion dot co dot uk
Sorry, but the bug in question was posted a while ago. The current stable release still does not support this feature, although the patched dlls supplied in bug #7782 work well.

I may have mis-understood: I wish to notify that the said functionality is still unavailable in the stable releases of PHP.
 [2004-02-16 23:49 UTC] sniper@php.net
Don't touch the status. 

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC