mirror of
https://github.com/php/php-src.git
synced 2025-01-26 21:54:16 +08:00
* compile fix
This commit is contained in:
parent
8d24db9ac0
commit
7918735b11
@ -1770,7 +1770,7 @@ PHPAPI int php_copy_file(char *src, char *dest)
|
||||
#ifdef PHP_WIN32
|
||||
if ((fd_t=V_OPEN((dest,_O_WRONLY|_O_CREAT|_O_TRUNC|_O_BINARY,_S_IREAD|_S_IWRITE)))==-1) {
|
||||
#else
|
||||
if ((fd_t=V_CREAT((dest,0777))==-1) {
|
||||
if ((fd_t=V_CREAT(dest,0777))==-1) {
|
||||
#endif
|
||||
php_error(E_WARNING,"Unable to create '%s': %s", dest, strerror(errno));
|
||||
close(fd_s);
|
||||
|
Loading…
Reference in New Issue
Block a user