From: clicky at erebot dot net Operating system: Irrelevant PHP version: Irrelevant Package: PHAR related Bug Type: Bug Bug description:Call to undefined method cli_arg_typ_string
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) -- Edit bug report at https://bugs.php.net/bug.php?id=65467&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65467&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65467&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65467&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65467&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65467&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65467&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65467&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65467&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65467&r=support Expected behavior: https://bugs.php.net/fix.php?id=65467&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65467&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65467&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65467&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65467&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65467&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65467&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65467&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65467&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65467&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65467&r=mysqlcfg