|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #65467 Call to undefined method cli_arg_typ_string
Submitted: 2013-08-17 15:44 UTC Modified: -
From: clicky at erebot dot net Assigned:
Status: Closed Package: PHAR related
PHP Version: Irrelevant OS: Irrelevant
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: clicky at erebot dot net
New email:
PHP Version: OS:


 [2013-08-17 15:44 UTC] clicky at erebot dot net
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/ 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/
PHP   4. call_user_func() phar:///home/clicky/Documents/git/phpfarm/inst/php-5.5.2-debug/bin/phar.phar/
PHP   5. PharCommand->cli_arg_typ_privkey() phar:///home/clicky/Documents/git/phpfarm/inst/php-5.5.2-debug/bin/phar.phar/

(other PHP versions display similar output)


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2015-03-30 13:42 UTC]
Automatic comment on behalf of mike
Log: Fixed Bug #65467
 [2015-03-30 13:42 UTC]
-Status: Open +Status: Closed
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 23 05:01:28 2024 UTC