From: Nikita Popov Date: Thu, 9 Apr 2020 14:06:37 +0000 (+0200) Subject: Make touch() $atime parameter UNKNOWN X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87ba975e31bc2430f34a0d1512ced04b291e7b97;p=php Make touch() $atime parameter UNKNOWN The actual default here is $time, not 0. --- diff --git a/ext/standard/basic_functions.stub.php b/ext/standard/basic_functions.stub.php index 40b424040f..3554b77fee 100755 --- a/ext/standard/basic_functions.stub.php +++ b/ext/standard/basic_functions.stub.php @@ -942,7 +942,7 @@ function lchgrp(string $filename, $group): bool {} function chmod(string $filename, int $mode): bool {} #if HAVE_UTIME -function touch(string $filename, int $time = 0, int $atime = 0): bool {} +function touch(string $filename, int $time = 0, int $atime = UNKNOWN): bool {} #endif function clearstatcache(bool $clear_realpath_cache = false, string $filename = ""): void {} diff --git a/ext/standard/basic_functions_arginfo.h b/ext/standard/basic_functions_arginfo.h index aca009456e..121380b711 100755 --- a/ext/standard/basic_functions_arginfo.h +++ b/ext/standard/basic_functions_arginfo.h @@ -1443,7 +1443,7 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_touch, 0, 1, _IS_BOOL, 0) ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, time, IS_LONG, 0, "0") - ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, atime, IS_LONG, 0, "0") + ZEND_ARG_TYPE_INFO(0, atime, IS_LONG, 0) ZEND_END_ARG_INFO() #endif