]> granicus.if.org Git - php/commitdiff
MFH
authorIlia Alshanetsky <iliaa@php.net>
Thu, 27 Feb 2003 16:41:44 +0000 (16:41 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Thu, 27 Feb 2003 16:41:44 +0000 (16:41 +0000)
ext/standard/filestat.c

index ab047ff5544b51586866a9fcf5c8e4403c9bc314..86bb455f76df0a0571806ac9932aedd88678dfbd 100644 (file)
@@ -564,6 +564,10 @@ static void php_stat(const char *filename, php_stat_len filename_length, int typ
        char *stat_sb_names[13]={"dev", "ino", "mode", "nlink", "uid", "gid", "rdev",
                              "size", "atime", "mtime", "ctime", "blksize", "blocks"};
 
+       if (!filename_length) {
+               RETURN_FALSE;
+       }
+
        if (PG(safe_mode) &&(!php_checkuid_ex(filename, NULL, CHECKUID_CHECK_FILE_AND_DIR, IS_EXISTS_CHECK(type) ? CHECKUID_NO_ERRORS : 0))) {
                RETURN_FALSE;
        }