foreach(split("\n", `pear list-files PHP_Archive`) as $ent)
{
$matches = NULL;
- if (preg_match(",^php[ \t]+([^ \t].*pear[\\\\/]PHP[\\\\/]Archive.php)$,", $ent, $matches))
+ if (preg_match(",^php[ \t]+([^ \t].*pear[\\\\/]PHP[\\\\/]Ar#chive.php)$,", $ent, $matches))
{
$found = $matches[1];
break;
}
}
- if (!isset($found) && $arg != 'optional') {
+ if (!isset($found)) {
echo "Pear package PHP_Archive or Archive.php class file not found.\n";
- exit(1);
+ if ($arg != 'optional')
+ {
+ exit(1);
+ }
}
$arg = $found;
}