41 $this->suffixes[] = $suffix;
55 if (ini_get(
'open_basedir')) {
56 $searchPath = explode(PATH_SEPARATOR, ini_get(
'open_basedir'));
58 foreach ($searchPath as
$path) {
63 if (basename($path) == $name && is_executable($path)) {
70 explode(PATH_SEPARATOR, getenv(
'PATH') ?: getenv(
'Path')),
76 if (
'\\' === DIRECTORY_SEPARATOR) {
77 $pathExt = getenv(
'PATHEXT');
81 foreach ($dirs as $dir) {
82 if (is_file(
$file = $dir.DIRECTORY_SEPARATOR.$name.$suffix) && (
'\\' === DIRECTORY_SEPARATOR || is_executable(
$file))) {
setSuffixes(array $suffixes)
Replaces default suffixes of executable.
addSuffix($suffix)
Adds new possible suffix to check for executable.
Generic executable finder.
Create styles array
The data for the language used.
if(!file_exists("$old.txt")) if($old===$new) if(file_exists("$new.txt")) $file
find($name, $default=null, array $extraDirs=array())
Finds an executable by name.