*p = '\0';
q = p;
while (q > buf) {
- if (!zend_stat(buf, &sb)) {
+ if (!VCWD_STAT(buf, &sb)) {
if (sb.st_mode & S_IFDIR) {
const char **file = index_files;
if (q[-1] != DEFAULT_SLASH) {
while (*file) {
size_t l = strlen(*file);
memmove(q, *file, l + 1);
- if (!zend_stat(buf, &sb) && (sb.st_mode & S_IFREG)) {
+ if (!VCWD_STAT(buf, &sb) && (sb.st_mode & S_IFREG)) {
q += l;
break;
}
if (document_root) {
zend_stat_t sb;
- if (zend_stat(document_root, &sb)) {
+ if (VCWD_STAT(document_root, &sb)) {
fprintf(stderr, "Directory %s does not exist.\n", document_root);
return 1;
}