PEAR is archived and read-only

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

Home » PEAR » PEAR » Bug #1345

pear install zip / sqlite ignoring ext_dir config

Details

Submitted2004-05-05 11:40 UTC
Fromsdibb at myway dot com
Assignedpajoye
StatusBogus
PackagePEAR
PHP Version4.3.6
OSGentoo Linux
Roadmaps(Not assigned)

Comments

[2004-05-05 11:40 UTC] sdibb at myway dot com

Description:
------------
Either this is a bug, or I'm configuring pear / php (cli) wrong and I don't know where to fix it.

pear install sqlite is ignoring the ext_dir setting. Same thing happens for pear install zip as well, which is why I'm filing this as a general pear bug.

I can't find where else to set the configuration. I deleted my /usr/local/etc/pear.conf and ran pear config-set ext_dir /usr/local/lib/php/extensions so my /root/.pearrc reads:
#PEAR_Config 0.9
a:1:{s:7:"ext_dir";s:29:"/usr/local/lib/php/extensions";}

my original php config options = ./configure --with-mysql --with-zip --with-zlib --with-crack --with-pgsql --with-apxs=/www/bin/apxs

I'm lost. :)

Reproduce code:
---------------
grep "extension_dir" /usr/local/lib/php.ini
extension_dir = "/usr/local/lib/php/extensions"
; extension_dir directive above.

pear config-show
Configuration:
==============
PEAR executables directory bin_dir /usr/local/bin
PEAR documentation directory doc_dir /usr/local/lib/php/docs
PHP extension directory ext_dir /usr/local/lib/php/extensions
PEAR directory php_dir /usr/local/lib/php
PEAR Installer cache directory cache_dir /tmp/pear/cache
PEAR data directory data_dir /usr/local/lib/php/data
PHP CLI/CGI binary php_bin /usr/local/bin/php
PEAR test directory test_dir /usr/local/lib/php/tests
Cache TimeToLive cache_ttl 3600
Preferred Package State preferred_state stable
Unix file mask umask 22
Debug Log Level verbose 1
HTTP Proxy Server Address http_proxy <not set>
PEAR server master_server pear.php.net
PEAR password (for password <not set>
maintainers)
Signature Handling Program sig_bin /usr/bin/gpg
Signature Key Directory sig_keydir /usr/local/etc/pearkeys
Signature Key Id sig_keyid <not set>
Package Signature Type sig_type gpg
PEAR username (for username <not set>
maintainers)

Expected result:
----------------
pear install sqlite
...
checking for PHP extension directory... /usr/local/lib/php/extensions
...

Actual result:
--------------
pear install sqlite
...
checking for PHP extension directory... /usr/local/lib/php/extensions/no-debug-non-zts-20020429
...

[2004-05-05 11:44 UTC] sdibb at myway dot com

even so, it installs okay in the end, if I create that directory:

Build process completed successfully
Installing 'sqlite.so' at ext_dir (/usr/local/lib/php/extensions/sqlite.so)
install ok: SQLite 1.0.2

[2004-05-16 15:51 UTC] paj at pearfr dot org

Thank you for taking the time to write to us, but this is not
a bug.

Hello,

The builds depend on the build tools. So the default (and fall out) behiavor is to install the ext into the php/ze extension folder. In your case:
no-debug-non-zts-20020429
which is a Zend API version of 20020429, without debug.

It is a safe way to do install all extensions in a folder used by every php installations.

--Pierre