[PEAR-BUG] Bug #20988 [Com]: custom pearrc is not passeed by bin/pear to pearcmd

[email protected] ("[email protected]") Tue, 2 Feb 2016 05:43:16 -0500 (EST)
Newsgroups php.pear.bugs
Message-ID <[email protected]>
Edit report at https://pear.php.net/bugs/bug.php?id=20988&edit=1

 ID:               20988
 Comment by:       [email protected]
 Reported By:      ale dot comp_06 at xox dot ch
 Summary:          custom pearrc is not passeed by bin/pear to pearcmd
 Status:           Open
 Type:             Bug
 Package:          PEAR
 Operating System: os x / homebrew
 Package Version:  1.10.1
 PHP Version:      5.6.14
 Roadmap Versions: 
 New Comment:

Me still!


Previous Comments:
------------------------------------------------------------------------

[2015-12-08 09:07:14] ale

Description:
------------
after having successfully completed a pear install local to a project,
all ./bin/pear commands modify the system wide pear.

the peculiar part seem to be that i've set pearrc to be inside of the
project's include file.

adding a -c option to the pearcmd exec command in ./bin/pear solves the
issue:

exec $PHP -C -q $INCARG -d date.timezone=UTC -d output_buffering=1 -d
variables_order=EGPCS -d open_basedir="" -d safe_mode=0 -d
register_argc_argv="On" -d auto_prepend_file="" -d auto_append_file=""
$INCDIR/pearcmd.php  -c
/Users/ale/httpd/project_name/include/pear/pearrc "$@"

i guess that the go-pear.phar should add that option to the exec command
when tweaking the pear/bin/pear file.

------------------------------------------------------------------------


-- 
Edit this bug report at https://pear.php.net/bugs/bug.php?id=20988&edit=1