cvs: pear-core / install-pear.php

From: Date: Mon, 20 Apr 2009 04:32:22 +0000
Subject: cvs: pear-core / install-pear.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-8357@lists.php.net to get a copy of this message
cellog Mon Apr 20 04:32:22 2009 UTC Modified files: /pear-core install-pear.php Log: add php_prefix/php_suffix saving. This finally fixes PHP Bug #43857 http://cvs.php.net/viewvc.cgi/pear-core/install-pear.php?r1=1.37&r2=1.38&diff_format=u Index: pear-core/install-pear.php diff -u pear-core/install-pear.php:1.37 pear-core/install-pear.php:1.38 --- pear-core/install-pear.php:1.37 Mon Feb 16 00:46:55 2009 +++ pear-core/install-pear.php Mon Apr 20 04:32:22 2009 @@ -1,6 +1,6 @@ <?php -/* $Id: install-pear.php,v 1.37 2009/02/16 00:46:55 dufuz Exp $ */ +/* $Id: install-pear.php,v 1.38 2009/04/20 04:32:22 cellog Exp $ */ error_reporting(1803); @@ -48,6 +48,12 @@ $i++; } elseif ($arg == '--force') { $force = true; + } elseif ($arg == '-dp') { + $prefix = $argv[$i+1]; + $i++; + } elseif ($arg == '-ds') { + $suffix = $argv[$i+1]; + $i++; } elseif ($arg == '-d') { $with_dir = $argv[$i+1]; $i++; @@ -149,9 +155,34 @@ $config->set('cache_dir', $cdir); } } + +// PHP executable if (!empty($php_bin)) { $config->set('php_bin', $php_bin); } + +// PHP prefix +if (isset($prefix)) { + if ($prefix != 'a') { + if ($prefix[0] == 'a') { + $prefix = substr($prefix, 1); + } + $config->set('php_prefix', $prefix, 'system'); + } +} + +// PHP suffix +if (isset($suffix)) { + if ($suffix != 'a') { + if ($suffix[0] == 'a') { + $suffix = substr($suffix, 1); + } + $config->set('php_suffix', $suffix, 'system'); + } +} +echo "dangit\n"; +exit; + /* Print PEAR Conf (useful for debuging do NOT REMOVE) */ if ($debug) { sort($keys);

« previous php.pear.core (#8357) next »