php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #72035 php-cgi.exe fails to run scripts relative to drive root
Submitted: 2016-04-15 23:10 UTC Modified: 2016-04-15 23:23 UTC
From: ab@php.net Assigned: ab (profile)
Status: Closed Package: CGI/CLI related
PHP Version: 7.0Git-2016-04-15 (Git) OS: Windows
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ab@php.net
New email:
PHP Version: OS:

 

 [2016-04-15 23:10 UTC] ab@php.net
Description:
------------
Credits to Mukhtar Desai for reporting.


C:\PHP7.0.RC7>php.exe \inetpub\wwwroot\helloworld.php
hello world

C:\PHP7.0.RC7>php-cgi.exe \inetpub\wwwroot\helloworld.php
Status: 404 Not Found
X-Powered-By: PHP/7.0.0RC7
Content-type: text/html; charset=UTF-8

No input file specified.

C:\PHP7.0.RC7>php-cgi.exe helloworld.php
X-Powered-By: PHP/7.0.0RC7
Content-type: text/html; charset=UTF-8

hello world


Test script:
---------------
No script necessary, it is a path parsing issue.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2016-04-15 23:23 UTC] ab@php.net
-Assigned To: +Assigned To: ab
 [2016-04-23 17:24 UTC] ab@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e0edb25cf2decd41f897100ebd4330c8f9b8a15e
Log: Fixed bug #72035 php-cgi.exe fails to run scripts relative to drive root
 [2016-04-23 17:24 UTC] ab@php.net
-Status: Assigned +Status: Closed
 [2016-07-20 11:31 UTC] davey@php.net
Automatic comment on behalf of ab
Revision: http://git.php.net/?p=php-src.git;a=commit;h=e0edb25cf2decd41f897100ebd4330c8f9b8a15e
Log: Fixed bug #72035 php-cgi.exe fails to run scripts relative to drive root
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Fri Jul 23 20:01:23 2021 UTC