diff options
author | Stephen Reay <stephen.reay@me.com> | 2019-08-12 01:09:38 +0700 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-08-12 10:05:36 +0200 |
commit | 5db330698187af1e6fe1e24e21980f0ca062dd96 (patch) | |
tree | 0922b82d8a80d999c5f318f7c062ebea2a58c9d7 /ext/sysvshm/sysvshm.stub.php | |
parent | 429378d78d0c87f285a80286310725877eb924b2 (diff) | |
download | php-git-5db330698187af1e6fe1e24e21980f0ca062dd96.tar.gz |
Added arginfo stubs for svsvshm
Closes GH-4524.
Diffstat (limited to 'ext/sysvshm/sysvshm.stub.php')
-rw-r--r-- | ext/sysvshm/sysvshm.stub.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/ext/sysvshm/sysvshm.stub.php b/ext/sysvshm/sysvshm.stub.php new file mode 100644 index 0000000000..673f9c6f04 --- /dev/null +++ b/ext/sysvshm/sysvshm.stub.php @@ -0,0 +1,35 @@ +<?php + +/** @return resource|false */ +function shm_attach(int $key, int $memsize = UNKNOWN, int $perm = 0666) {} + +/** + * @param resource $shm_identifier + */ +function shm_detach($shm_identifier): bool {} + +/** + * @param resource $id + */ +function shm_has_var($id, int $variable_key): bool {} + +/** + * @param resource $shm_identifier + */ +function shm_remove($shm_identifier): bool {} + +/** + * @param resource $shm_identifier + */ +function shm_put_var($shm_identifier, int $variable_key, $variable): bool {} + +/** + * @param resource $id + * @return mixed + */ +function shm_get_var($id, int $variable_key) {} + +/** + * @param resource $id + */ +function shm_remove_var($id, int $variable_key): bool {} |