|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 05:00:01 2025 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://...");'