diff options
author | Derick Rethans <derick@php.net> | 2001-05-14 18:30:07 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2001-05-14 18:30:07 +0000 |
commit | 6123e2abe08e15f3ee02edd4b73e5b88c6dd3c86 (patch) | |
tree | 225e8e2f382c803e3e9f11da91e7463dbf26caef | |
parent | 2331bbe445d70f7f4061136fdbe625639c911772 (diff) | |
download | php-git-6123e2abe08e15f3ee02edd4b73e5b88c6dd3c86.tar.gz |
- Bumbed up the warning level to be in sync with fopen (which is E_WARNING
too) (See bug #10856)
-rw-r--r-- | ext/standard/filestat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/filestat.c b/ext/standard/filestat.c index 290ad16a7c..9d021c2e9e 100644 --- a/ext/standard/filestat.c +++ b/ext/standard/filestat.c @@ -475,7 +475,7 @@ static void php_stat(const char *filename, php_stat_len filename_length, int typ #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 @@ static void php_stat(const char *filename, php_stat_len filename_length, int typ 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; } } |