php.net |  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 you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: clicky at erebot dot net
New email:
PHP Version: OS:

 

 [2013-08-17 15:44 UTC] clicky at erebot dot net
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)

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-03-30 13:42 UTC] mike@php.net
Automatic comment on behalf of mike
Revision: http://git.php.net/?p=php-src.git;a=commit;h=6de25c155e3a90c273af311d71298ec88ac61833
Log: Fixed Bug #65467
 [2015-03-30 13:42 UTC] mike@php.net
-Status: Open +Status: Closed
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Thu Jan 30 07:01:31 2025 UTC