File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1726,7 +1726,7 @@ PHP_METHOD(BcMath_Number, __serialize)
1726
1726
1727
1727
zval zv ;
1728
1728
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 );
1730
1730
}
1731
1731
1732
1732
PHP_METHOD (BcMath_Number , __unserialize )
@@ -1737,7 +1737,7 @@ PHP_METHOD(BcMath_Number, __unserialize)
1737
1737
Z_PARAM_ARRAY_HT (props )
1738
1738
ZEND_PARSE_PARAMETERS_END ();
1739
1739
1740
- zval * zv = zend_hash_str_find (props , "value" , sizeof ("value" )- 1 );
1740
+ zval * zv = zend_hash_str_find (props , ZEND_STRL ("value" ));
1741
1741
if (!zv || Z_TYPE_P (zv ) != IS_STRING || Z_STRLEN_P (zv ) == 0 ) {
1742
1742
goto fail ;
1743
1743
}
You can’t perform that action at this time.
0 commit comments