Skip to content

Commit b7c4d8e

Browse files
iNem0ocmb69
authored andcommitted
Add metaphone arginfo stubs
1 parent ff7900f commit b7c4d8e

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

ext/standard/basic_functions.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1585,12 +1585,7 @@ ZEND_BEGIN_ARG_INFO(arginfo_intdiv, 0)
15851585
ZEND_ARG_INFO(0, divisor)
15861586
ZEND_END_ARG_INFO()
15871587
/* }}} */
1588-
/* {{{ metaphone.c */
1589-
ZEND_BEGIN_ARG_INFO_EX(arginfo_metaphone, 0, 0, 1)
1590-
ZEND_ARG_INFO(0, text)
1591-
ZEND_ARG_INFO(0, phones)
1592-
ZEND_END_ARG_INFO()
1593-
/* }}} */
1588+
15941589
/* {{{ microtime.c */
15951590
#ifdef HAVE_GETTIMEOFDAY
15961591
ZEND_BEGIN_ARG_INFO_EX(arginfo_microtime, 0, 0, 0)

ext/standard/basic_functions.stub.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,3 +135,8 @@ function inet_ntop (string $in_addr) {}
135135
/** @return string|false */
136136
function inet_pton (string $ip_address) {}
137137
#endif
138+
139+
/* metaphone.c */
140+
141+
/** @return string|false */
142+
function metaphone(string $text, int $phones = 0) {}

ext/standard/basic_functions_arginfo.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,3 +169,8 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_inet_pton, 0, 0, 1)
169169
ZEND_ARG_TYPE_INFO(0, ip_address, IS_STRING, 0)
170170
ZEND_END_ARG_INFO()
171171
#endif
172+
173+
ZEND_BEGIN_ARG_INFO_EX(arginfo_metaphone, 0, 0, 1)
174+
ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0)
175+
ZEND_ARG_TYPE_INFO(0, phones, IS_LONG, 0)
176+
ZEND_END_ARG_INFO()

0 commit comments

Comments
 (0)