diff options
| author | Jeroen van Wolffelaar <jeroen@php.net> | 2001-09-25 21:58:48 +0000 |
|---|---|---|
| committer | Jeroen van Wolffelaar <jeroen@php.net> | 2001-09-25 21:58:48 +0000 |
| commit | c03328857394bef36ffa9678d33079ad96e4a4e4 (patch) | |
| tree | c0fb250db3b1bb996fc305bf56c2b74eb6d00935 /ext/standard/metaphone.c | |
| parent | 158d34c9a57816326e141e88e1409d9f377dc2ea (diff) | |
| download | php-git-c03328857394bef36ffa9678d33079ad96e4a4e4.tar.gz | |
Back-substitute for Z_* macro's. If it breaks some extension (the script isn't optimal, it parses for example var->zval.value incorrect) please let me know.
Diffstat (limited to 'ext/standard/metaphone.c')
| -rw-r--r-- | ext/standard/metaphone.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/metaphone.c b/ext/standard/metaphone.c index f249c249b0..5d1648dfd2 100644 --- a/ext/standard/metaphone.c +++ b/ext/standard/metaphone.c @@ -39,14 +39,14 @@ PHP_FUNCTION(metaphone) if (zend_get_parameters_ex(2, &pstr, &pphones) == SUCCESS) { convert_to_long_ex(pphones); - phones = (*pphones)->value.lval; + phones = Z_LVAL_PP(pphones); } else if (zend_get_parameters_ex(1, &pstr) == FAILURE) { WRONG_PARAM_COUNT; } convert_to_string_ex(pstr); - if (metaphone((*pstr)->value.str.val, phones, &result, 1) == 0) { + if (metaphone(Z_STRVAL_PP(pstr), phones, &result, 1) == 0) { RETVAL_STRING(result, 0); } else { if (result) { |
