|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #53639 command line PHAR
Submitted: 2011-01-02 11:58 UTC Modified: 2017-10-24 06:54 UTC
From: bugzilla33 at gmail dot com Assigned:
Status: Open Package: CGI/CLI related
PHP Version: 5.3.4 OS: win32
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
Solve the problem:
41 - 8 = ?
Subscribe to this entry?

 [2011-01-02 11:58 UTC] bugzilla33 at gmail dot com
PHARs do not work via command line

No posted anything here on how to run script in PHAR from the command line.

Test script:
Run cmd and go to PHP5 folder and try to run any PHAR file:

c:\PHP5>php.exe "phar://test.phar/script.php"
Could not open input file phar://test.phar/script.php

or may:

c:\PHP5>php.exe "test.phar/script.php"
Could not open input file test.phar/script.php

Expected result:
PHARs works via command line

Actual result:
PHARs do not work via command line


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-02 22:47 UTC]
-Status: Open +Status: Assigned -Package: PHAR related +Package: CGI related -Assigned To: +Assigned To: johannes
 [2011-01-02 22:47 UTC]
Might be interesting for CLI to support streams, not only phar.

As a work-around you should beable to do php -r 'include("phar://...");'
 [2017-10-24 06:54 UTC]
-Status: Assigned +Status: Open -Assigned To: johannes +Assigned To:
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Mon Jan 18 17:01:24 2021 UTC