summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/shmop/shmop.c2
-rw-r--r--ext/shmop/shmop.stub.php (renamed from ext/shmop/php_shmop.stub.php)3
-rw-r--r--ext/shmop/shmop_arginfo.h (renamed from ext/shmop/php_shmop_arginfo.h)2
3 files changed, 3 insertions, 4 deletions
diff --git a/ext/shmop/shmop.c b/ext/shmop/shmop.c
index fcecf1e566..4f47372f31 100644
--- a/ext/shmop/shmop.c
+++ b/ext/shmop/shmop.c
@@ -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>
diff --git a/ext/shmop/php_shmop.stub.php b/ext/shmop/shmop.stub.php
index 6e3d1255b0..11a65fc728 100644
--- a/ext/shmop/php_shmop.stub.php
+++ b/ext/shmop/shmop.stub.php
@@ -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
diff --git a/ext/shmop/php_shmop_arginfo.h b/ext/shmop/shmop_arginfo.h
index 058109e255..c91b4ace12 100644
--- a/ext/shmop/php_shmop_arginfo.h
+++ b/ext/shmop/shmop_arginfo.h
@@ -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()