Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.14.0

Bug #16904 Phar generated phars don't load with PHP_Archive
Submitted: 2009-12-15 12:07 UTC
From: miquelfire Assigned:
Status: Open Package: PHP_Archive (version 0.11.4)
PHP Version: 5.2.5 OS: Any
Roadmaps: (Not assigned)    
Subscription  


 [2009-12-15 12:07 UTC] miquelfire (Miquel Burns)
Description: ------------ In trying to create phars that can run without the Phar extensions (systems running 5.2 mainly), I decided to use PHP_Archive to load phars. In my test, the first phar loaded is created with PHP_Archive_Creator, so that phar loads the PHP_Archive class already. Using phar, I made a second phar, and using setstub, I reused the code that appeared to be needed to load a phar (basically, removed the code for PHP_Archive class, but left the rest) This results in a manifest misread some how (example error included) Currently, it seems if I want to support the 5.2 crowd, I need to use PHP_Archive_Creator to create all phars, and have too much redundant code in the beginning. Actual result: -------------- ERROR: manifest length read was "147" should be "1095262047"

Comments