R
R
Ruslan Leviev2011-05-11 12:26:35
PHP
Ruslan Leviev, 2011-05-11 12:26:35

Installing PHP Phar Extension on PHP 5.3

There are PHP-5.3.6 sources. When configuring, I also set the path where the PEAR packages will be installed ( --with-pear=/usr/local/lib/php/pear ). At the end of the configuration, it issues:

PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.


There is no ./configure option for Phar in the Phar section of php.net , moreover, if we run the command:
[email protected]:~/php-5.3.6# ./configure --help | grep phar
  --disable-phar          Disable phar support


then we will see only the option that disables Phar support, plus the above section of the php.net website directly says: "The Phar extension is built into PHP as of PHP version 5.3.0" . All this seems to hint to us that the "Phar extension" is already enabled by default in PHP 5.3.

Why is he complaining then?

Note: you might think that I have --disable-phar in the configuration options, that's why he complains, but it's not, I do not include such an option.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
sajgak, 2011-05-11
@sajgak

When configuring, I also include the installation of PEAR in the options

so why are you doing this if it says that it is built-in?

M
Maxim, 2011-05-11
@maxout

you again =))
PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled.
literally means that the PHP installer determined that the PEAR package PHP_Archive is not in the system (no longer! he was not going to install it, he will check for it). and since it doesn't exist, the phar (external utility, not a module) it built will use PHP's built-in phar module. and therefore it would be nice to have it included in php, as if make install tells us.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question