From: Nikita Popov Date: Wed, 4 Nov 2020 14:49:12 +0000 (+0100) Subject: getlastmod() can return false X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=73321bc300c808346b2d00ec1bc513447a5d579b;p=php getlastmod() can return false At least this can happen during preloading. --- diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php index b7c50ef10a..5d325515f7 100755 --- a/ext/standard/basic_functions.stub.php +++ b/ext/standard/basic_functions.stub.php @@ -461,7 +461,7 @@ function getmypid(): int|false {} function getmyinode(): int|false {} -function getlastmod(): int {} +function getlastmod(): int|false {} /* sha1.c */ diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h index 0fcc6caedf..a5bf2cedad 100644 --- a/ext/standard/basic_functions_arginfo.h +++ b/ext/standard/basic_functions_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: e38af54610d415ef27b19137645d8f6481953624 */ + * Stub hash: 4edb7cad23ccb051dbe267b3979e98892607c98f */ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_set_time_limit, 0, 1, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, seconds, IS_LONG, 0) @@ -687,7 +687,7 @@ ZEND_END_ARG_INFO() #define arginfo_getmyinode arginfo_ob_get_length -#define arginfo_getlastmod arginfo_ob_get_level +#define arginfo_getlastmod arginfo_ob_get_length #define arginfo_sha1 arginfo_md5