Req #68340 [NEW]: [feature req:php-cli] zipped module like .pyz in python , .jar in java
| From: | zaxebo1 at gmail dot com | Date: | Tue, 04 Nov 2014 02:26:26 +0000 |
| Subject: | Req #68340 [NEW]: [feature req:php-cli] zipped module like .pyz in python , .jar in java | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-188434@lists.php.net to get a copy of this message | ||
From: zaxebo1 at gmail dot com
Operating system: irrelevant ;ubuntu 14.04
PHP version: Irrelevant
Package: CGI/CLI related
Bug Type: Feature/Change Request
Bug description:[feature req:php-cli] zipped module like .pyz in python , .jar in java
Description:
------------
In python, if i have multiple program files: "a1.py, a2.py, __main__.py,
dir1/b1.py, dir1/b2.py" and then i zip it as myprogram1.pyz
then i can run it as "python myprogram.pyz" (__main__.py inside the zip
file will be executed first). It is easy to distribute a single file
myprogram1.pyz
see: http://blogs.gnome.org/jamesh/2012/05/21/python-zip-files/
===
in java also we can bundle all the .class files into a single .jar file
and run it
java -jar myprogram1.jar
========
Now, i request you to kind provide a feature in php-cli that if i have
lots of files like: a1.php , a2.php, __main__.php dir1/a4.php etc.
(say, which uses PHP-GTK for a Desktop application). Then i should be
able to bundle them as zip file, say myprog1.zip or myprog1.pz (pz
=php's zipped executable archive).
And then i can distribute this "single file" and execute it as:
php myprog1.pz
This will execute the __main__.php file among all the other .php files,
inside this .zip archive myprog1.pz .
--
Edit bug report at https://bugs.php.net/bug.php?id=68340&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68340&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68340&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68340&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68340&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68340&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68340&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68340&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68340&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68340&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68340&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68340&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68340&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68340&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68340&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68340&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68340&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68340&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68340&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68340&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68340&r=mysqlcfg