Skip to content

Commit 75a15cf

Browse files
committed
ext/json: Use zend_result type instead of int
1 parent aac7190 commit 75a15cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/json/json_encoder.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,7 @@ zend_result php_json_encode_zval(smart_str *buf, zval *val, int options, php_jso
702702
/* Avoid modifications (and potential freeing) of the array through a reference when a
703703
* jsonSerialize() method is invoked. */
704704
zval zv;
705-
int res;
705+
zend_result res;
706706
ZVAL_COPY(&zv, val);
707707
res = php_json_encode_array(buf, &zv, options, encoder);
708708
zval_ptr_dtor_nogc(&zv);

0 commit comments

Comments
 (0)