tony2001 Thu Oct 28 01:05:39 2004 EDT Modified files: (Branch: PHP_5_0) /php-src/main/streams plain_wrapper.c Log: fix Win32 & Netware build http://cvs.php.net/diff.php/php-src/main/streams/plain_wrapper.c?r1=1.39.2.2&r2=1.39.2.3&ty=u Index: php-src/main/streams/plain_wrapper.c diff -u php-src/main/streams/plain_wrapper.c:1.39.2.2 php-src/main/streams/plain_wrapper.c:1.39.2.3 --- php-src/main/streams/plain_wrapper.c:1.39.2.2 Wed Oct 27 07:59:48 2004 +++ php-src/main/streams/plain_wrapper.c Thu Oct 28 01:05:39 2004 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: plain_wrapper.c,v 1.39.2.2 2004/10/27 11:59:48 tony2001 Exp $ */ +/* $Id: plain_wrapper.c,v 1.39.2.3 2004/10/28 05:05:39 tony2001 Exp $ */ #include "php.h" #include "php_globals.h" @@ -1024,6 +1024,7 @@ struct stat sb; if (php_copy_file(url_from, url_to TSRMLS_CC) == SUCCESS) { if (VCWD_STAT(url_from, &sb) == 0) { +#if !defined(TSRM_WIN32) && !defined(NETWARE) if (VCWD_CHMOD(url_to, sb.st_mode)) { if (errno == EPERM) { php_error_docref2(NULL TSRMLS_CC, url_from, url_to, E_WARNING, "%s", strerror(errno)); @@ -1042,6 +1043,7 @@ php_error_docref2(NULL TSRMLS_CC, url_from, url_to, E_WARNING, "%s", strerror(errno)); return 0; } +#endif VCWD_UNLINK(url_from); return 1; }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php