iliaa Tue Jan 17 02:32:34 2006 UTC Modified files: /php-src/main/streams plain_wrapper.c Log: MFB51: 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.57&r2=1.58&diff_format=u Index: php-src/main/streams/plain_wrapper.c diff -u php-src/main/streams/plain_wrapper.c:1.57 php-src/main/streams/plain_wrapper.c:1.58 --- php-src/main/streams/plain_wrapper.c:1.57 Mon Jan 16 19:47:07 2006 +++ php-src/main/streams/plain_wrapper.c Tue Jan 17 02:32:34 2006 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: plain_wrapper.c,v 1.57 2006/01/16 19:47:07 tony2001 Exp $ */ +/* $Id: plain_wrapper.c,v 1.58 2006/01/17 02:32:34 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; } }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php