summaryrefslogtreecommitdiff
path: root/ext/standard/metaphone.c
diff options
context:
space:
mode:
authorThies C. Arntzen <thies@php.net>1999-12-14 03:49:42 +0000
committerThies C. Arntzen <thies@php.net>1999-12-14 03:49:42 +0000
commit82679342354c70a0f2d3c070b402539554f92e8e (patch)
treec7af27b9ca6f40ad803eef5755fc6c025d7ede7d /ext/standard/metaphone.c
parentd90daba134dc4bf33326533ba1325c28d35dd651 (diff)
downloadphp-git-82679342354c70a0f2d3c070b402539554f92e8e.tar.gz
use ex-API
Diffstat (limited to 'ext/standard/metaphone.c')
-rw-r--r--ext/standard/metaphone.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/standard/metaphone.c b/ext/standard/metaphone.c
index 7c6832ef5d..17aec1ece2 100644
--- a/ext/standard/metaphone.c
+++ b/ext/standard/metaphone.c
@@ -47,20 +47,20 @@ zend_module_entry metaphone_module_entry =
/* metaphone -- Breaks english phrases down into their phonemes. */
PHP_FUNCTION(metaphone)
{
- pval *pstr, *pphones;
+ pval **pstr, **pphones;
char *result = 0;
int phones = 0;
- if (getParameters(ht, 2, &pstr, &pphones) == SUCCESS) {
- convert_to_long(pphones);
- phones = pphones->value.lval;
- } else if (getParameters(ht, 1, &pstr) == FAILURE) {
+ if (getParametersEx(2, &pstr, &pphones) == SUCCESS) {
+ convert_to_long_ex(pphones);
+ phones = (*pphones)->value.lval;
+ } else if (getParametersEx(1, &pstr) == FAILURE) {
WRONG_PARAM_COUNT;
}
- convert_to_string(pstr);
+ convert_to_string_ex(pstr);
- if (metaphone(pstr->value.str.val, phones, &result, 1) == 0) {
+ if (metaphone((*pstr)->value.str.val, phones, &result, 1) == 0) {
RETVAL_STRING(result, 0);
} else {
if (result) {