derick          Sat Jan  4 18:55:58 2003 EDT

  Modified files:              
    /php4/ext/standard  filestat.c 
  Log:
  - Change Warnings to Notices
  
Index: php4/ext/standard/filestat.c
diff -u php4/ext/standard/filestat.c:1.115 php4/ext/standard/filestat.c:1.116
--- php4/ext/standard/filestat.c:1.115  Fri Jan  3 09:37:41 2003
+++ php4/ext/standard/filestat.c        Sat Jan  4 18:55:57 2003
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: filestat.c,v 1.115 2003/01/03 14:37:41 hyanantha Exp $ */
+/* $Id: filestat.c,v 1.116 2003/01/04 23:55:57 derick Exp $ */
 
 #include "php.h"
 #include "safe_mode.h"
@@ -603,7 +603,7 @@
 #endif
                if (VCWD_STAT(BG(CurrentStatFile), &BG(sb)) == -1) {
                        if (!IS_LINK_OPERATION(type) && (!IS_EXISTS_CHECK(type) || 
errno != ENOENT)) { /* fileexists() test must print no error */
-                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Stat 
failed for %s (errno=%d - %s)", BG(CurrentStatFile), errno, strerror(errno));
+                               php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Stat 
+failed for %s (errno=%d - %s)", BG(CurrentStatFile), errno, strerror(errno));
                        }
                        efree(BG(CurrentStatFile));
                        BG(CurrentStatFile) = NULL;
@@ -618,7 +618,7 @@
                /* do lstat if the buffer is empty */
                if (VCWD_LSTAT(filename, &BG(lsb)) == -1) {
                        if (!IS_EXISTS_CHECK(type) || errno != ENOENT) { /* 
fileexists() test must print no error */
-                               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Lstat 
failed for %s (errno=%d - %s)", BG(CurrentStatFile), errno, strerror(errno));
+                               php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Lstat 
+failed for %s (errno=%d - %s)", BG(CurrentStatFile), errno, strerror(errno));
                        }
                        RETURN_FALSE;
                }
@@ -707,7 +707,7 @@
                case S_IFSOCK: RETURN_STRING("socket", 1);
 #endif
                }
-               php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unknown file type (%d)", 
BG(sb).st_mode&S_IFMT);
+               php_error_docref(NULL TSRMLS_CC, E_NOTICE, "Unknown file type (%d)", 
+BG(sb).st_mode&S_IFMT);
                RETURN_STRING("unknown", 1);
        case FS_IS_W:
        #ifndef NETWARE /* getuid is not available on NetWare */



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to