|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58220 phar install issues
Submitted: 2008-06-04 22:49 UTC Modified: 2008-07-27 14:06 UTC
From: Assigned: helly (profile)
Status: Not a bug Package: phar (PECL)
PHP Version: 5_3 CVS-2008-06-04 (dev) OS: *
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:
New email:
PHP Version: OS:


 [2008-06-04 22:49 UTC]
The "after compile" stage has issues that appear Phar related... have a look below. This appears related to some recent 5_3 commits.

Reproduce code:

Expected result:

Actual result:
lssl -lcrypto -lz -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lcrypt -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm -lcrypt  -o sapi/cli/php
Generating phar.php
Generating phar.phar
Pear package PHP_Archive or Archive.php class file not found.

Fatal error: Uncaught exception 'PharException' with message 'illegal stub for phar "/tmp/php5.3-200806050030/ext/phar/phar.phar"' in /tmp/php5.3-200806050030/ext/phar/phar.php:1010
Stack trace:
#0 /tmp/php5.3-200806050030/ext/phar/phar.php(1010): Phar->setStub('#!/local/php/bi...')
#1 /tmp/php5.3-200806050030/ext/phar/phar.php(1070): PharCommand->phar_set_stub_begin(Object(Phar), '/tmp/php5.3-200...', '/tmp/php5.3-200...', '/local/php/bin/...')
#2 [internal function]: PharCommand->cli_cmd_run_pack(Array)
#3 /tmp/php5.3-200806050030/ext/phar/phar.php(226): call_user_func(Array, Array)
#4 /tmp/php5.3-200806050030/ext/phar/phar.php(2090): CLICommand->__construct(19, Array)
#5 {main}
  thrown in /tmp/php5.3-200806050030/ext/phar/phar.php on line 1010
*** Error code 255

Stop in /tmp/php5.3-200806050030.
-bash-2.05b$ ./sapi/cli/php -v
PHP 5.3.0-dev (cli) (built: Jun  4 2008 21:29:38) 
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2008 Zend Technologies


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2008-07-27 14:06 UTC]
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PECL.

Try rebuilding PHP, the new Makefile stuff should fix this. The PECL extension is right now out of date.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 14 18:01:30 2024 UTC