diff options
author | Ilia Alshanetsky <iliaa@php.net> | 2006-01-17 02:32:09 +0000 |
---|---|---|
committer | Ilia Alshanetsky <iliaa@php.net> | 2006-01-17 02:32:09 +0000 |
commit | 5f9dde24d8e967060b0984d79f0ec6a8272be79a (patch) | |
tree | 4572209b9e29cde932d9f5c855055400c753b2f2 /main/streams/plain_wrapper.c | |
parent | 694042e527173aa5801021017d7b065609d2151b (diff) | |
download | php-git-5f9dde24d8e967060b0984d79f0ec6a8272be79a.tar.gz |
Only report mkdir() errors if error reporting option is set.
Diffstat (limited to 'main/streams/plain_wrapper.c')
-rw-r--r-- | main/streams/plain_wrapper.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index f05283fe3b..ac5ad825db 100644 --- a/main/streams/plain_wrapper.c +++ b/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; } } |