cvs: php4 /ext/standard file.c

From: Date: Fri, 13 Sep 2002 13:34:08 +0000
Subject: cvs: php4 /ext/standard file.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-14048@lists.php.net to get a copy of this message
iliaa Fri Sep 13 09:34:08 2002 EDT Modified files: /php4/ext/standard file.c Log: Do not create the destination file, if opening of the source file failed during copy(). Index: php4/ext/standard/file.c diff -u php4/ext/standard/file.c:1.253 php4/ext/standard/file.c:1.254 --- php4/ext/standard/file.c:1.253 Sat Sep 7 16:58:30 2002 +++ php4/ext/standard/file.c Fri Sep 13 09:34:06 2002 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: file.c,v 1.253 2002/09/07 20:58:30 wez Exp $ */ +/* $Id: file.c,v 1.254 2002/09/13 13:34:06 iliaa Exp $ */ /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */ @@ -1883,6 +1883,9 @@ srcstream = php_stream_open_wrapper(src, "rb", ENFORCE_SAFE_MODE | REPORT_ERRORS, NULL); + + if (!srcstream) + return ret; deststream = php_stream_open_wrapper(dest, "wb", ENFORCE_SAFE_MODE | REPORT_ERRORS,

« previous php.cvs (#14048) next »