summaryrefslogtreecommitdiff
path: root/ext/intl/grapheme/grapheme_string.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/intl/grapheme/grapheme_string.c')
-rw-r--r--ext/intl/grapheme/grapheme_string.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/intl/grapheme/grapheme_string.c b/ext/intl/grapheme/grapheme_string.c
index f4172636e5..eeb44d83c8 100644
--- a/ext/intl/grapheme/grapheme_string.c
+++ b/ext/intl/grapheme/grapheme_string.c
@@ -835,13 +835,14 @@ PHP_FUNCTION(grapheme_extract)
}
if ( NULL != next ) {
- if ( !PZVAL_IS_REF(next) ) {
+ if ( !Z_ISREF_P(next) ) {
intl_error_set( NULL, U_ILLEGAL_ARGUMENT_ERROR,
"grapheme_extract: 'next' was not passed by reference", 0 TSRMLS_CC );
RETURN_FALSE;
}
else {
+ ZVAL_DEREF(next);
/* initialize next */
zval_dtor(next);
ZVAL_LONG(next, lstart);