Skip to content

Commit d39ac7e

Browse files
committed
Review parameter names in ext/sysvsem
1 parent 9fbffe4 commit d39ac7e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

ext/sysvsem/sysvsem.stub.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ final class SysvSemaphore
66
{
77
}
88

9-
function sem_get(int $key, int $max_acquire = 1, int $perm = 0666, bool $auto_release = true): SysvSemaphore|false {}
9+
function sem_get(int $key, int $max_acquire = 1, int $permissions = 0666, bool $auto_release = true): SysvSemaphore|false {}
1010

11-
function sem_acquire(SysvSemaphore $semaphore, bool $nowait = false): bool {}
11+
function sem_acquire(SysvSemaphore $semaphore, bool $non_blocking = false): bool {}
1212

1313
function sem_release(SysvSemaphore $semaphore): bool {}
1414

ext/sysvsem/sysvsem_arginfo.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
/* This is a generated file, edit the .stub.php file instead.
2-
* Stub hash: d00524488977b77475f9aa78c132a6dd53ab4dd0 */
2+
* Stub hash: 745e7cf135c7d1c9ad09d1ea1ab6cf2a8181433a */
33

44
ZEND_BEGIN_ARG_WITH_RETURN_OBJ_TYPE_MASK_EX(arginfo_sem_get, 0, 1, SysvSemaphore, MAY_BE_FALSE)
55
ZEND_ARG_TYPE_INFO(0, key, IS_LONG, 0)
66
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, max_acquire, IS_LONG, 0, "1")
7-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, perm, IS_LONG, 0, "0666")
7+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, permissions, IS_LONG, 0, "0666")
88
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, auto_release, _IS_BOOL, 0, "true")
99
ZEND_END_ARG_INFO()
1010

1111
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sem_acquire, 0, 1, _IS_BOOL, 0)
1212
ZEND_ARG_OBJ_INFO(0, semaphore, SysvSemaphore, 0)
13-
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, nowait, _IS_BOOL, 0, "false")
13+
ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, non_blocking, _IS_BOOL, 0, "false")
1414
ZEND_END_ARG_INFO()
1515

1616
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_sem_release, 0, 1, _IS_BOOL, 0)

0 commit comments

Comments
 (0)