]> granicus.if.org Git - php/commitdiff
- Bumbed up the warning level to be in sync with fopen (which is E_WARNING
authorDerick Rethans <derick@php.net>
Mon, 14 May 2001 18:30:07 +0000 (18:30 +0000)
committerDerick Rethans <derick@php.net>
Mon, 14 May 2001 18:30:07 +0000 (18:30 +0000)
  too) (See bug #10856)

ext/standard/filestat.c

index 290ad16a7c6fde0335206128a9ef5e52648db47a..9d021c2e9e00f3f9afef547c3f910edb7fb9e573 100644 (file)
@@ -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;
                }
        }