From c0cbab6002f8b111396c3ab2b9df92cbd0b3448a Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A1t=C3=A9=20Kocsis?= Date: Sun, 5 Apr 2020 20:09:58 +0200 Subject: [PATCH] Add missing stub for xmlrpc_get_type() --- ext/xmlrpc/xmlrpc.stub.php | 3 +++ ext/xmlrpc/xmlrpc_arginfo.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/ext/xmlrpc/xmlrpc.stub.php b/ext/xmlrpc/xmlrpc.stub.php index e2805bd43f..c8e712248c 100644 --- a/ext/xmlrpc/xmlrpc.stub.php +++ b/ext/xmlrpc/xmlrpc.stub.php @@ -10,6 +10,9 @@ function xmlrpc_decode_request(string $xml, &$method, string $encoding = "iso-88 function xmlrpc_encode_request(?string $method, $params, array $output_options = UNKNOWN): ?string {} +/** @param mixed $value */ +function xmlrpc_get_type($value): string {} + function xmlrpc_set_type(&$value, string $type): bool {} function xmlrpc_is_fault(array $arg): bool {} diff --git a/ext/xmlrpc/xmlrpc_arginfo.h b/ext/xmlrpc/xmlrpc_arginfo.h index 5beecc99e6..dbb5980e0a 100644 --- a/ext/xmlrpc/xmlrpc_arginfo.h +++ b/ext/xmlrpc/xmlrpc_arginfo.h @@ -21,6 +21,10 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_xmlrpc_encode_request, 0, 2, IS_ ZEND_ARG_TYPE_INFO(0, output_options, IS_ARRAY, 0) ZEND_END_ARG_INFO() +ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_xmlrpc_get_type, 0, 1, IS_STRING, 0) + ZEND_ARG_INFO(0, value) +ZEND_END_ARG_INFO() + ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_xmlrpc_set_type, 0, 2, _IS_BOOL, 0) ZEND_ARG_INFO(1, value) ZEND_ARG_TYPE_INFO(0, type, IS_STRING, 0) -- 2.40.0