Skip to content

Commit fe64d73

Browse files
committed
Review parameter names in ext/opcache
Closes GH-6237
1 parent 9fbb411 commit fe64d73

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

ext/opcache/opcache.stub.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
function opcache_reset(): bool {}
66

7-
function opcache_get_status(bool $fetch_scripts = true): array|false {}
7+
function opcache_get_status(bool $include_scripts = true): array|false {}
88

9-
function opcache_compile_file(string $file): bool {}
9+
function opcache_compile_file(string $filename): bool {}
1010

11-
function opcache_invalidate(string $script, bool $force = false): bool {}
11+
function opcache_invalidate(string $filename, bool $force = false): bool {}
1212

1313
function opcache_get_configuration(): array|false {}
1414

15-
function opcache_is_script_cached(string $script): bool {}
15+
function opcache_is_script_cached(string $filename): bool {}

ext/opcache/opcache_arginfo.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,26 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: 64f07c411732f60fed22267ee5e702a37e399879 */
2+
* Stub hash: 06a37b4af6a0fb5d7bd24b1660ea8ce09e959ec8 */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_opcache_reset, 0, 0, _IS_BOOL, 0)
55
ZEND_END_ARG_INFO()
66

77
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_opcache_get_status, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
8-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, fetch_scripts, _IS_BOOL, 0, "true")
8+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, include_scripts, _IS_BOOL, 0, "true")
99
ZEND_END_ARG_INFO()
1010

1111
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_opcache_compile_file, 0, 1, _IS_BOOL, 0)
12-
ZEND_ARG_TYPE_INFO(0, file, IS_STRING, 0)
12+
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
1313
ZEND_END_ARG_INFO()
1414

1515
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_opcache_invalidate, 0, 1, _IS_BOOL, 0)
16-
ZEND_ARG_TYPE_INFO(0, script, IS_STRING, 0)
16+
ZEND_ARG_TYPE_INFO(0, filename, IS_STRING, 0)
1717
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, force, _IS_BOOL, 0, "false")
1818
ZEND_END_ARG_INFO()
1919

2020
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_opcache_get_configuration, 0, 0, MAY_BE_ARRAY|MAY_BE_FALSE)
2121
ZEND_END_ARG_INFO()
2222

23-
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_opcache_is_script_cached, 0, 1, _IS_BOOL, 0)
24-
ZEND_ARG_TYPE_INFO(0, script, IS_STRING, 0)
25-
ZEND_END_ARG_INFO()
23+
#define arginfo_opcache_is_script_cached arginfo_opcache_compile_file
2624

2725

2826
ZEND_FUNCTION(opcache_reset);

0 commit comments

Comments
 (0)