diff options
Diffstat (limited to 'ext/standard/mail.c')
-rw-r--r-- | ext/standard/mail.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/mail.c b/ext/standard/mail.c index 5e53ab0fe0..d045fa4690 100644 --- a/ext/standard/mail.c +++ b/ext/standard/mail.c @@ -56,8 +56,8 @@ PHP_FUNCTION(ezmlm_hash) } convert_to_string_ex(pstr); - if ((*pstr)->value.str.val) { - str = (*pstr)->value.str.val; + if (Z_STRVAL_PP(pstr)) { + str = Z_STRVAL_PP(pstr); } else { php_error(E_WARNING, "Must give string parameter to ezmlm_hash()"); RETURN_FALSE; |