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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 12:01:33 2025 UTC