svn: /pear2/Pyrus/trunk/src/Pyrus/ Config.php

From: Date: Sun, 21 Feb 2010 17:24:05 +0000
Subject: svn: /pear2/Pyrus/trunk/src/Pyrus/ Config.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9182@lists.php.net to get a copy of this message
dufuz Sun, 21 Feb 2010 17:24:05 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=295305 Log: Make sure ENV PATH is set before trying ot explode it loop over it. Changed paths: U pear2/Pyrus/trunk/src/Pyrus/Config.php Modified: pear2/Pyrus/trunk/src/Pyrus/Config.php =================================================================== --- pear2/Pyrus/trunk/src/Pyrus/Config.php 2010-02-21 16:59:48 UTC (rev 295304) +++ pear2/Pyrus/trunk/src/Pyrus/Config.php 2010-02-21 17:24:05 UTC (rev 295305) @@ -340,7 +340,7 @@ if (substr(PHP_OS, 0, 3) == 'WIN') { if (file_exists(self::$defaults['bin_dir'] . DIRECTORY_SEPARATOR . 'php.exe')) { self::$defaults['php_bin'] = self::$defaults['bin_dir'] . DIRECTORY_SEPARATOR . 'php.exe'; - } else { + } elseif (isset($_ENV['PATH'])) { foreach (explode(PATH_SEPARATOR, $_ENV['PATH']) as $path) { if (file_exists($path . DIRECTORY_SEPARATOR . 'php.exe')) { self::$defaults['php_bin'] = $path . DIRECTORY_SEPARATOR . 'php.exe';

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