cvs: php4 /ext/standard filestat.c

From: Date: Thu, 27 Feb 2003 20:38:01 +0000
Subject: cvs: php4 /ext/standard filestat.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-19247@lists.php.net to get a copy of this message
iliaa Thu Feb 27 15:38:01 2003 EDT Modified files: /php4/ext/standard filestat.c Log: Fixed a bug that would cause filetype() to return "unknown" for non-existent files on Win32. Index: php4/ext/standard/filestat.c diff -u php4/ext/standard/filestat.c:1.120 php4/ext/standard/filestat.c:1.121 --- php4/ext/standard/filestat.c:1.120 Thu Feb 27 11:41:23 2003 +++ php4/ext/standard/filestat.c Thu Feb 27 15:38:00 2003 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: filestat.c,v 1.120 2003/02/27 16:41:23 iliaa Exp $ */ +/* $Id: filestat.c,v 1.121 2003/02/27 20:38:00 iliaa Exp $ */ #include "php.h" #include "safe_mode.h" @@ -608,9 +608,10 @@ } efree(BG(CurrentStatFile)); BG(CurrentStatFile) = NULL; - if (!IS_LINK_OPERATION(type)) { /* Don't require success for link operation */ +#if HAVE_SYMLINK + if (!IS_LINK_OPERATION(type)) /* Don't require success for link operation */ +#endif RETURN_FALSE; - } } }

« previous php.cvs (#19247) next »