tony2001 Thu Oct 28 01:05:21 2004 EDT
Modified files:
/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.41&r2=1.42&ty=u
Index: php-src/main/streams/plain_wrapper.c
diff -u php-src/main/streams/plain_wrapper.c:1.41
php-src/main/streams/plain_wrapper.c:1.42
--- php-src/main/streams/plain_wrapper.c:1.41 Wed Oct 27 07:58:49 2004
+++ php-src/main/streams/plain_wrapper.c Thu Oct 28 01:05:20 2004
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: plain_wrapper.c,v 1.41 2004/10/27 11:58:49 tony2001 Exp $ */
+/* $Id: plain_wrapper.c,v 1.42 2004/10/28 05:05:20 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