summaryrefslogtreecommitdiff
path: root/ext/shmop/shmop.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/shmop/shmop.c')
-rw-r--r--ext/shmop/shmop.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/shmop/shmop.c b/ext/shmop/shmop.c
index c6569aa4c8..97e0ce14e9 100644
--- a/ext/shmop/shmop.c
+++ b/ext/shmop/shmop.c
@@ -216,7 +216,7 @@ PHP_FUNCTION(shmop_open)
shmop->size = shm.shm_segsz;
ZEND_REGISTER_RESOURCE(return_value, shmop, shm_type);
- RETURN_LONG(Z_RES_HANDLE_P(return_value));
+ RETURN_INT(Z_RES_HANDLE_P(return_value));
err:
efree(shmop);
RETURN_FALSE;
@@ -289,7 +289,7 @@ PHP_FUNCTION(shmop_size)
ZEND_FETCH_RESOURCE(shmop, struct php_shmop *, NULL, shmid, "shmop", shm_type);
- RETURN_LONG(shmop->size);
+ RETURN_INT(shmop->size);
}
/* }}} */
@@ -322,7 +322,7 @@ PHP_FUNCTION(shmop_write)
writesize = (data_len < shmop->size - offset) ? data_len : shmop->size - offset;
memcpy(shmop->addr + offset, data, writesize);
- RETURN_LONG(writesize);
+ RETURN_INT(writesize);
}
/* }}} */