cvs: php-src(PHP_5_1) /main/streams plain_wrapper.c
| From: | Ilia Alshanetsky | Date: | Tue, 17 Jan 2006 02:32:09 +0000 |
| Subject: | cvs: php-src(PHP_5_1) /main/streams plain_wrapper.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-36539@lists.php.net to get a copy of this message | ||
iliaa Tue Jan 17 02:32:09 2006 UTC
Modified files: (Branch: PHP_5_1)
/php-src/main/streams plain_wrapper.c
Log:
Only report mkdir() errors if error reporting option is set.
http://cvs.php.net/viewcvs.cgi/php-src/main/streams/plain_wrapper.c?r1=1.52.2.5&r2=1.52.2.6&diff_format=u
Index: php-src/main/streams/plain_wrapper.c
diff -u php-src/main/streams/plain_wrapper.c:1.52.2.5 php-src/main/streams/plain_wrapper.c:1.52.2.6
--- php-src/main/streams/plain_wrapper.c:1.52.2.5 Mon Jan 16 19:48:23 2006
+++ php-src/main/streams/plain_wrapper.c Tue Jan 17 02:32:09 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: plain_wrapper.c,v 1.52.2.5 2006/01/16 19:48:23 tony2001 Exp $ */
+/* $Id: plain_wrapper.c,v 1.52.2.6 2006/01/17 02:32:09 iliaa Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -1120,7 +1120,9 @@
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;
}
}