#26605 [Opn->Bgs]: $_SERVER['PATH_INFO'] not being set under IIS

From: Date: Thu, 18 Dec 2003 21:38:16 +0000
Subject: #26605 [Opn->Bgs]: $_SERVER['PATH_INFO'] not being set under IIS
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-52264@lists.php.net to get a copy of this message
 ID:               26605
 Updated by:       sniper@php.net
 Reported By:      info at dysfunksion dot co dot uk
-Status:           Open
+Status:           Bogus
 Bug Type:         *General Issues
 Operating System: Windows
 PHP Version:      4.3.3
 New Comment:

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



Previous Comments:
------------------------------------------------------------------------

[2003-12-18 07:02:52] 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-12 12:20:36] iliaa@php.net

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip



------------------------------------------------------------------------

[2003-12-12 11:10:31] 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


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=26605&edit=1


Thread (7 messages)

« previous php.bugs (#52264) next »