php.net |  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: 2021-02-11 16:00 UTC
From: bugzilla33 at gmail dot com Assigned:
Status: Suspended Package: CGI/CLI related
PHP Version: 5.3.4 OS: win32
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bugzilla33 at gmail dot com
New email:
PHP Version: OS:

 

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

See http://docs.php.net/manual/en/phar.using.intro.php
 
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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-02 22:47 UTC] johannes@php.net
-Status: Open +Status: Assigned -Package: PHAR related +Package: CGI related -Assigned To: +Assigned To: johannes
 [2011-01-02 22:47 UTC] johannes@php.net
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] kalle@php.net
-Status: Assigned +Status: Open -Assigned To: johannes +Assigned To:
 [2021-02-11 16:00 UTC] cmb@php.net
-Status: Open +Status: Suspended
 [2021-02-11 16:00 UTC] cmb@php.net
> Might be interesting for CLI to support streams, not only phar.

I don't think so.  There are already issues regarding usage of
question marks and hash signs, which have special meaning in an
URL, but can be valid characters for filenames.

Anyhow, if anybody still thinks that would be a reasonable
feature, please pursue the RFC process[1].  For the time being,
I'm suspending this ticket.

[1] <https://wiki.php.net/rfc/howto>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 21:01:29 2024 UTC