Re: cvs: php4(PHP_4_3) /pear System.php /pear/PEAR Config.php

From: Date: Sun, 22 Dec 2002 02:39:06 +0000
Subject: Re: cvs: php4(PHP_4_3) /pear System.php /pear/PEAR Config.php
References: 1  Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-7947@lists.php.net to get a copy of this message
         foreach ($path_elements as $dir) {
             $file = $dir . DIRECTORY_SEPARATOR . $program . $exe_suffix;
-            if (@is_file($file) && @is_executable($file)) {
+            if (@is_file($file) && @$pear_is_executable($file)) {
                 return $file;
             }
         }
Wouldn't this be better as: if (@is_file($file) && (OS_WINDOWS || @is_executable($file)) { That would avoid running is_file twice on windows. Shane

« previous php.pear.cvs (#7947) next »