Fixed inconsistent naming for stub, return type for shmop_size

This commit is contained in:
Stephen Reay 2019-08-12 14:53:01 +07:00 committed by Christoph M. Becker
parent c5a7f61eca
commit 434f5329f7
3 changed files with 3 additions and 4 deletions

View file

@ -24,7 +24,7 @@
#include "php.h"
#include "php_ini.h"
#include "php_shmop.h"
#include "php_shmop_arginfo.h"
#include "shmop_arginfo.h"
# ifndef PHP_WIN32
# include <sys/ipc.h>

View file

@ -16,9 +16,8 @@ function shmop_close($shmid): void {}
/**
* @param resource $shmid
* @return int|false
*/
function shmop_size($shmid) {}
function shmop_size($shmid): int {}
/**
* @param resource $shmid

View file

@ -17,7 +17,7 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_shmop_close, 0, 1, IS_VOID, 0)
ZEND_ARG_INFO(0, shmid)
ZEND_END_ARG_INFO()
ZEND_BEGIN_ARG_INFO_EX(arginfo_shmop_size, 0, 0, 1)
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_shmop_size, 0, 1, IS_LONG, 0)
ZEND_ARG_INFO(0, shmid)
ZEND_END_ARG_INFO()