cvs: php4(PHP_4_2_0) /ext/standard filestat.c

From: Date: Wed, 11 Sep 2002 00:41:17 +0000
Subject: cvs: php4(PHP_4_2_0) /ext/standard filestat.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-14003@lists.php.net to get a copy of this message
edink Tue Sep 10 20:41:17 2002 EDT Modified files: (Branch: PHP_4_2_0) /php4/ext/standard filestat.c Log: Fixed file_exists() on platforms using VCWD. #Why was this merged? It introduced a serious bug in 4.2.3. Index: php4/ext/standard/filestat.c diff -u php4/ext/standard/filestat.c:1.89.2.6 php4/ext/standard/filestat.c:1.89.2.7 --- php4/ext/standard/filestat.c:1.89.2.6 Tue Aug 20 15:02:59 2002 +++ php4/ext/standard/filestat.c Tue Sep 10 20:41:17 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: filestat.c,v 1.89.2.6 2002/08/20 19:02:59 sas Exp $ */ +/* $Id: filestat.c,v 1.89.2.7 2002/09/11 00:41:17 edink Exp $ */ #include "php.h" #include "safe_mode.h" @@ -558,19 +558,6 @@ if (php_check_open_basedir(filename TSRMLS_CC)) { RETURN_FALSE; } - -#ifndef PHP_WIN32 - switch (type) { - case FS_IS_W: - RETURN_BOOL (!access (filename, W_OK)); - case FS_IS_R: - RETURN_BOOL (!access (filename, R_OK)); - case FS_IS_X: - RETURN_BOOL (!access (filename, X_OK)); - case FS_EXISTS: - RETURN_BOOL (!access (filename, F_OK)); - } -#endif stat_sb = &BG(sb);

« previous php.cvs (#14003) next »