|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2015-03-30 13:42 UTC] mike@php.net
[2015-03-30 13:42 UTC] mike@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 12:00:01 2025 UTC |
Description: ------------ Using the "pack" command in phar.phar with the openssl algorithm (-h option) and a password for the key (-y option) results in a fatal error over a call to an undefined method. The bug exists in all versions of PHP that I have tested where the Phar extension is bundled, namely: - PHP 5.3.27 - PHP 5.4.17 - PHP 5.5.2 Test script: --------------- phar pack -f /tmp/foo.phar.bz2 -c bz2 -h openssl -y password /tmp/baz Expected result: ---------------- Phar archive is created/updated successfully. Actual result: -------------- PHP Fatal error: Call to undefined method PharCommand::cli_arg_typ_string() in phar:///home/clicky/Documents/git/phpfarm/inst/php-5.5.2-debug/bin/phar.phar/pharcommand.inc on line 400 PHP Stack trace: PHP 1. {main}() /home/clicky/Documents/git/phpfarm/inst/php-5.5.2-debug/bin/phar.phar:0 PHP 2. CLICommand->__construct() /home/clicky/Documents/git/phpfarm/inst/php-5.5.2-debug/bin/phar.phar:61 PHP 3. CLICommand->checkArgTyp() phar:///home/clicky/Documents/git/phpfarm/inst/php-5.5.2-debug/bin/phar.phar/clicommand.inc:51 PHP 4. call_user_func() phar:///home/clicky/Documents/git/phpfarm/inst/php-5.5.2-debug/bin/phar.phar/clicommand.inc:106 PHP 5. PharCommand->cli_arg_typ_privkey() phar:///home/clicky/Documents/git/phpfarm/inst/php-5.5.2-debug/bin/phar.phar/clicommand.inc:106 (other PHP versions display similar output)