Skip to content

Commit 87ba975

Browse files
committed
Make touch() $atime parameter UNKNOWN
The actual default here is $time, not 0.
1 parent 258c4df commit 87ba975

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/standard/basic_functions.stub.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ function lchgrp(string $filename, $group): bool {}
942942
function chmod(string $filename, int $mode): bool {}
943943

944944
#if HAVE_UTIME
945-
function touch(string $filename, int $time = 0, int $atime = 0): bool {}
945+
function touch(string $filename, int $time = 0, int $atime = UNKNOWN): bool {}
946946
#endif
947947

948948
function clearstatcache(bool $clear_realpath_cache = false, string $filename = ""): void {}

ext/standard/basic_functions_arginfo.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,7 @@ ZEND_END_ARG_INFO()
14431443
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_touch, 0, 1, _IS_BOOL, 0)
14441444
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
14451445
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, time, IS_LONG, 0, "0")
1446-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, atime, IS_LONG, 0, "0")
1446+
ZEND_ARG_TYPE_INFO(0, atime, IS_LONG, 0)
14471447
ZEND_END_ARG_INFO()
14481448
#endif
14491449

0 commit comments

Comments
 (0)