cvs: php4 /ext/standard filestat.c

From: Date: Mon, 14 May 2001 18:30:07 +0000
Subject: cvs: php4 /ext/standard filestat.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-5737@lists.php.net to get a copy of this message
derick Mon May 14 11:30:07 2001 EDT Modified files: /php4/ext/standard filestat.c Log: - Bumbed up the warning level to be in sync with fopen (which is E_WARNING too) (See bug #10856) Index: php4/ext/standard/filestat.c diff -u php4/ext/standard/filestat.c:1.64 php4/ext/standard/filestat.c:1.65 --- php4/ext/standard/filestat.c:1.64 Fri May 11 12:55:43 2001 +++ php4/ext/standard/filestat.c Mon May 14 11:30:07 2001 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: filestat.c,v 1.64 2001/05/11 19:55:43 jason Exp $ */ +/* $Id: filestat.c,v 1.65 2001/05/14 18:30:07 derick Exp $ */ #include "php.h" #include "safe_mode.h" @@ -475,7 +475,7 @@ #endif if (VCWD_STAT(BG(CurrentStatFile), &BG(sb)) == -1) { if (!IS_LINK_OPERATION() && (type != 15 || errno != ENOENT)) { /* fileexists() test must print no error */ - php_error(E_NOTICE,"stat failed for %s (errno=%d - %s)", BG(CurrentStatFile), errno, strerror(errno)); + php_error(E_WARNING, "stat failed for %s (errno=%d - %s)", BG(CurrentStatFile), errno, strerror(errno)); } efree(BG(CurrentStatFile)); BG(CurrentStatFile) = NULL; @@ -489,7 +489,7 @@ if (IS_LINK_OPERATION() && !BG(lsb).st_mode) { /* do lstat if the buffer is empty */ if (VCWD_LSTAT(filename, &BG(lsb)) == -1) { - php_error(E_NOTICE, "lstat failed for %s (errno=%d - %s)", filename, errno, strerror(errno)); + php_error(E_WARNING, "lstat failed for %s (errno=%d - %s)", filename, errno, strerror(errno)); RETURN_FALSE; } }

« previous php.cvs (#5737) next »