-
stil
php sqlite phar
I’m trying to access SQLite database through PDO extension inside Phar archive, but I’m getting error:exception ‘PDOException’ with message ‘SQLSTATE[HY000] [14] unable to open database file’PHP manual says it’s possible to modify files inside archive. How can I fix it?
-
Ravish Tiwari
php phar httpful
I am trying to use ‘httpful’ library by including the httpful.phar in one of my projects. Fatal error: Uncaught exception ‘PharException’ with message ‘phar”/MY_HOME_DIR/public_html/php5.3/src/lib/Httpful/httpful.phar” has abroken signature’ in/MY_HOME_DIR/public_html/php5.3/src/lib/Httpful/httpful.phar:3 Stacktrace: #0/MY_HOME_DIR/public_html/php5.3/src/lib/Httpful/httpful.phar(3):Phar::mapPhar(‘httpful.phar’) #1/MY_HOME_DIR/public_html/php5.3/src/SMSAPI/BaseSMSAPI.php(3):include_once(‘/MY_HOME
-
Michael Tichon
php phar
I’m using PasswordLib. I run my project on wamp and everything is OK but when I uploaded it to my hosting I got this error:Fatal error: Uncaught exception ‘PharException’ with message ‘__HALT_COMPILER(); must be declared in a phar’ in /data/web/virtuals/9784/virtual/www/subdom/roids/_libs/PasswordLib.phar:21 Stack trace: #0 /data/web/virtuals/9784/virtual/www/subdom/roids/_libs/PasswordLib.phar(21): Phar::mapPhar(‘PasswordLib.pha…’) #1 /data/web/virtuals/9784/virtual/www/subdom/roids/index.php
-
automatix
php zend-framework2 phar
The Phar Archive of the ZFTool can be downloaded from GitHub or created manually.When I try to complite the Phar on my own, I get this error:user@machine:/lib/ZendFramework/ZFTool# bin/create-phar PHP Fatal error: Uncaught exception ‘UnexpectedValueException’ with message ‘RecursiveDirectoryIterator::__construct(/lib/ZendFramework/ZFTool/vendor): failed to open dir: No such file or directory’ in /lib/ZendFramework/ZFTool/bin/create-phar:65 Stack trace: #0 /lib/ZendFramework/ZFTool/bin/create-ph
-
SarmenHB
php phar
I am trying to learn how to create phars and i am getting this error and have no clue how to fix it. Any ideas?Fatal error: Uncaught exception ‘UnexpectedValueException’ with message ‘Cannot create phar ‘/myapp/build/myapp.phar’, file extension (or combination) not recognised or the directory does not exist’ in /Volumes/www/vhosts/myapp/create-phar.php:11 Stack trace: #0 /Volumes/www/vhosts/myapp/create-phar.php(11): Phar->__construct(‘/myapp/build/my…’, 256, ‘myapp.phar’) #1 {main}thrown
-
marius2k12
php phar
I need to modify a PHAR file. Whenever I make changes to the file and then execute it I get the following error message:Fatal error: Uncaught exception ‘PharException’ with message SHA1 signature could not be verified: broken signature’By doing some research I found out that I can eitherextract the phar, modify it and then “put it back into a phar file”. How do I do that? or set phar.require_hash = false in my php.ini to disable the signature checking. This did not solve the problem unfortunatel
-
Charles
php hex bzip2 phar
I’m using the extractTo method of the PHP PharData class to examine the contents of a phar file and running into some strage results. I’ve reached the limits of my byte level detective work and was hoping someone here would be able to help me sort this out.Details follow, but generally speaking: When I extract my archive files with PharData::extractTo, the files I get out appeart to be a bzip varient, but the bzip2 command doesn’t like them. Is this normal phar behavior, or is it a problem wit