25 #require_once 'Zend/Filter/Interface.php'; 71 $exists = $exists->toArray();
74 if (is_array($exists)) {
75 if (isset($exists[
'exists'])) {
76 $exists = (boolean) $exists[
'exists'];
80 $this->_exists = (boolean) $exists;
96 return realpath(
$path);
99 $realpath = @realpath(
$path);
105 if (substr(PHP_OS, 0, 3) ==
'WIN') {
106 $path = preg_replace(
'/[\\\\\/]/', DIRECTORY_SEPARATOR,
$path);
107 if (preg_match(
'/([a-zA-Z]\:)(.*)/',
$path, $matches)) {
108 list($fullMatch, $drive,
$path) = $matches;
111 $drive = substr($cwd, 0, 2);
112 if (substr(
$path, 0, 1) != DIRECTORY_SEPARATOR) {
113 $path = substr($cwd, 3) . DIRECTORY_SEPARATOR .
$path;
116 }
elseif (substr(
$path, 0, 1) != DIRECTORY_SEPARATOR) {
117 $path = getcwd() . DIRECTORY_SEPARATOR .
$path;
121 $parts = explode(DIRECTORY_SEPARATOR,
$path);
122 foreach ($parts as $dir) {
123 if (strlen($dir) && $dir !==
'.') {
127 array_push($stack, $dir);
132 return $drive . DIRECTORY_SEPARATOR . implode(DIRECTORY_SEPARATOR, $stack);
elseif(isset( $params[ 'redirect_parent']))
__construct($options=true)