summaryrefslogtreecommitdiff
path: root/ext/sysvsem
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2014-08-19 13:11:32 +0200
committerAnatol Belski <ab@php.net>2014-08-19 13:11:32 +0200
commit5491d01a925392be921095d17e08203da662263c (patch)
tree1a73edbf4fc18dd85e75cc55b1440406330c1918 /ext/sysvsem
parent58aa0f8df898a6df36725c21e05a036bbf5e3216 (diff)
downloadphp-git-5491d01a925392be921095d17e08203da662263c.tar.gz
port sysvshm, sysvsem and sysvmsg
Diffstat (limited to 'ext/sysvsem')
-rw-r--r--ext/sysvsem/sysvsem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/sysvsem/sysvsem.c b/ext/sysvsem/sysvsem.c
index e8751174e3..cdf596acc0 100644
--- a/ext/sysvsem/sysvsem.c
+++ b/ext/sysvsem/sysvsem.c
@@ -187,13 +187,13 @@ PHP_MINIT_FUNCTION(sysvsem)
Return an id for the semaphore with the given key, and allow max_acquire (default 1) processes to acquire it simultaneously */
PHP_FUNCTION(sem_get)
{
- long key, max_acquire = 1, perm = 0666, auto_release = 1;
+ php_int_t key, max_acquire = 1, perm = 0666, auto_release = 1;
int semid;
struct sembuf sop[3];
int count;
sysvsem_sem *sem_ptr;
- if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l|lll", &key, &max_acquire, &perm, &auto_release)) {
+ if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "i|iii", &key, &max_acquire, &perm, &auto_release)) {
RETURN_FALSE;
}