CVS update: php3

From: Date: Tue, 22 Jun 1999 14:47:19 +0000
Subject: CVS update: php3
Groups: php.dev 
Request: Send a blank email to php-dev+get-7425@lists.php.net to get a copy of this message
Date: Tuesday June 22, 1999 @ 10:47 Author: sas Update of /repository/php3 In directory php:/tmp/cvs-serv13106 Modified Files: fopen-wrappers.c Log Message: fix for #1565 Index: php3/fopen-wrappers.c diff -u php3/fopen-wrappers.c:1.68 php3/fopen-wrappers.c:1.69 --- php3/fopen-wrappers.c:1.68 Tue Jun 22 07:04:11 1999 +++ php3/fopen-wrappers.c Tue Jun 22 10:47:19 1999 @@ -27,7 +27,7 @@ | Jim Winstead <jimw@php.net> | +----------------------------------------------------------------------+ */ -/* $Id: fopen-wrappers.c,v 1.68 1999/06/22 11:04:11 ssb Exp $ */ +/* $Id: fopen-wrappers.c,v 1.69 1999/06/22 14:47:19 sas Exp $ */ #ifdef THREAD_SAFE #include "tls.h" @@ -756,7 +756,7 @@ result = _php3_getftpresult(*socketd); if (mode[0] == 'r') { /* when reading file, it must exist */ - if (result > 299 || result < 200) { + if (result != 500 && result != 502 && (result > 299 || result < 200)) { php3_error(E_WARNING, "File not found"); free_url(resource); SOCK_FCLOSE(*socketd); @@ -766,7 +766,7 @@ } } else { /* when writing file, it must NOT exist */ - if (result <= 299 && result >= 200) { + if (result != 500 && result != 502 && (result <= 299 && result >= 200)) { php3_error(E_WARNING, "File already exists"); free_url(resource); SOCK_FCLOSE(*socketd);

« previous php.dev (#7425) next »