Req #53639 [Opn->Sus]: command line PHAR
| From: | cmb@php.net | Date: | Thu, 11 Feb 2021 16:00:24 +0000 |
| Subject: | Req #53639 [Opn->Sus]: command line PHAR | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-232067@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=53639&edit=1
ID: 53639
Updated by: cmb@php.net
Reported by: bugzilla33 at gmail dot com
Summary: command line PHAR
-Status: Open
+Status: Suspended
Type: Feature/Change Request
Package: CGI/CLI related
Operating System: win32
PHP Version: 5.3.4
Block user comment: N
Private report: N
New Comment:
> 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>
Previous Comments:
------------------------------------------------------------------------
[2011-01-02 22:47:41] 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://...");'
------------------------------------------------------------------------
[2011-01-02 11:58:30] 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
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=53639&edit=1