}
if (!expand_filepath(filename, resolved_path)) {
+ php_error_docref(NULL, E_WARNING, "No such file or directory");
return -1;
}
php_stat(resolved_path, strlen(resolved_path), FS_EXISTS, &exists_flag);
if (Z_TYPE(exists_flag) == IS_FALSE) {
+ php_error_docref(NULL, E_WARNING, "No such file or directory");
return -1;
}
}
if(!expand_filepath(ZSTR_VAL(filename), resolved_path)) {
+ php_error_docref(NULL, E_WARNING, "No such file or directory");
RETURN_FALSE;
}
}
if (!(resolved_path = expand_filepath(ZSTR_VAL(filename), NULL))) {
+ php_error_docref(NULL, E_WARNING, "No such file or directory");
RETURN_FALSE;
}