Skip to content

Commit 9c59787

Browse files
committed
use ZEND_STRL
1 parent 3b43c1c commit 9c59787

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/bcmath/bcmath.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1726,7 +1726,7 @@ PHP_METHOD(BcMath_Number, __serialize)
17261726

17271727
zval zv;
17281728
ZVAL_STR_COPY(&zv, bcmath_number_value_to_str(intern));
1729-
zend_hash_str_update(props, "value", sizeof("value")-1, &zv);
1729+
zend_hash_str_update(props, ZEND_STRL("value"), &zv);
17301730
}
17311731

17321732
PHP_METHOD(BcMath_Number, __unserialize)
@@ -1737,7 +1737,7 @@ PHP_METHOD(BcMath_Number, __unserialize)
17371737
Z_PARAM_ARRAY_HT(props)
17381738
ZEND_PARSE_PARAMETERS_END();
17391739

1740-
zval *zv = zend_hash_str_find(props, "value", sizeof("value")-1);
1740+
zval *zv = zend_hash_str_find(props, ZEND_STRL("value"));
17411741
if (!zv || Z_TYPE_P(zv) != IS_STRING || Z_STRLEN_P(zv) == 0) {
17421742
goto fail;
17431743
}

0 commit comments

Comments
 (0)