Browse Source

MFB51: Only report mkdir() errors if error reporting option is set.

migration/RELEASE_1_0_0
Ilia Alshanetsky 21 years ago
parent
commit
1204ea0e63
  1. 4
      main/streams/plain_wrapper.c

4
main/streams/plain_wrapper.c

@ -1120,7 +1120,9 @@ static int php_plain_files_mkdir(php_stream_wrapper *wrapper, char *dir, int mod
if (*p == '\0' && *(p + 1) != '\0') {
*p = DEFAULT_SLASH;
if ((ret = VCWD_MKDIR(buf, (mode_t)mode)) < 0) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", strerror(errno));
if (options & REPORT_ERRORS) {
php_error_docref(NULL TSRMLS_CC, E_WARNING, "%s", strerror(errno));
}
break;
}
}

Loading…
Cancel
Save