PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » PEAR » PEAR » Bug #7582

pecl command is invoked with php option -n disabling needed extensions

Details

Submitted2006-05-08 19:49 UTC
Fromtoni dot viemero at iki dot fi
StatusBogus
PackagePEAR
PHP Version5.1.2
OSFreeBSD 6.1-RELEASE
Roadmaps(Not assigned)

Comments

[2006-05-08 19:49 UTC] toni dot viemero at iki dot fi

Description:
------------
The "pecl" command invokes PHP with option -n, disabling reading of php.ini and needed extensions for "pecl" to work.

Since FreeBSD ports system builds PHP extensions as shared extensions and one of them is pcre, which is needed by pecl.

Does pecl really need to disable the reading of php.ini or do I file a report against FreeBSD PHP package?

"pear" command works fine, since it doesn't use the -n option when invoking pearcmd.php

PS. Your PHP version list is outdated at the bug reporter, I'm using PHP 5.1.4

Test script:
---------------
Invoke "pecl" from command line

Actual result:
--------------
Fatal error: Call to undefined function preg_match() in /usr/local/share/pear/PEAR/Frontend/CLI.php on line 70