]> granicus.if.org Git - php/commitdiff
Fixed inconsistent naming for stub, return type for shmop_size
authorStephen Reay <stephen.reay@me.com>
Mon, 12 Aug 2019 07:53:01 +0000 (14:53 +0700)
committerChristoph M. Becker <cmbecker69@gmx.de>
Mon, 12 Aug 2019 08:13:53 +0000 (10:13 +0200)
ext/shmop/shmop.c
ext/shmop/shmop.stub.php [moved from ext/shmop/php_shmop.stub.php with 90% similarity]
ext/shmop/shmop_arginfo.h [moved from ext/shmop/php_shmop_arginfo.h with 92% similarity]

index fcecf1e5667fcc6534f6931fe00f716e63a2445d..4f47372f311b0113a54d487b12d5181d94e35922 100644 (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>
similarity index 90%
rename from ext/shmop/php_shmop.stub.php
rename to ext/shmop/shmop.stub.php
index 6e3d1255b04f82d6ab4f0076873ed99a20dd5259..11a65fc728e2ed2a5a7b63a2abdd6262f8701d78 100644 (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
similarity index 92%
rename from ext/shmop/php_shmop_arginfo.h
rename to ext/shmop/shmop_arginfo.h
index 058109e2550bf07edc85b84c3a09be87576090bf..c91b4ace1225a723489132ef4f2190479042d580 100644 (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()