svn: /pear/pear-core/trunk/PEAR/Start/ CLI.php

From: Date: Wed, 07 Apr 2010 22:42:38 +0000
Subject: svn: /pear/pear-core/trunk/PEAR/Start/ CLI.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9369@lists.php.net to get a copy of this message
dufuz Wed, 07 Apr 2010 22:42:38 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=297659 Log: Make the slashes look alright if people pick local installation on Windows. Changed paths: U pear/pear-core/trunk/PEAR/Start/CLI.php Modified: pear/pear-core/trunk/PEAR/Start/CLI.php =================================================================== --- pear/pear-core/trunk/PEAR/Start/CLI.php 2010-04-07 22:41:35 UTC (rev 297658) +++ pear/pear-core/trunk/PEAR/Start/CLI.php 2010-04-07 22:42:38 UTC (rev 297659) @@ -69,8 +69,13 @@ print "Please confirm local copy by typing 'yes' : "; $tmp = trim(fgets($this->tty, 1024)); if (strtolower($tmp) == 'yes') { + $slash = "\\"; + if (strrpos($this->prefix, '\\') === (strlen($this->prefix) - 1)) { + $slash = ''; + } + $this->localInstall = true; - $this->pear_conf = '$prefix\\pear.ini'; + $this->pear_conf = '$prefix' . $slash . 'pear.ini'; } } } else {

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