summaryrefslogtreecommitdiff
path: root/ext/standard/soundex.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/standard/soundex.c')
-rw-r--r--ext/standard/soundex.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/ext/standard/soundex.c b/ext/standard/soundex.c
index e52f1be5c1..bea945117b 100644
--- a/ext/standard/soundex.c
+++ b/ext/standard/soundex.c
@@ -66,11 +66,11 @@ PHP_FUNCTION(soundex)
}
convert_to_string_ex(parg);
arg = *parg;
- if (arg->value.str.len==0) {
+ if (Z_STRLEN_P(arg)==0) {
RETURN_FALSE;
}
- somestring = arg->value.str.val;
- len = arg->value.str.len;
+ somestring = Z_STRVAL_P(arg);
+ len = Z_STRLEN_P(arg);
/* build soundex string */
last = -1;
@@ -106,9 +106,9 @@ PHP_FUNCTION(soundex)
}
soundex[_small] = '\0';
- return_value->value.str.val = estrndup(soundex, _small);
- return_value->value.str.len = _small;
- return_value->type = IS_STRING;
+ Z_STRVAL_P(return_value) = estrndup(soundex, _small);
+ Z_STRLEN_P(return_value) = _small;
+ Z_TYPE_P(return_value) = IS_STRING;
}
/* }}} */