Skip to content

Commit

Permalink
ext/json: Use zend_result type instead of int
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias committed Jan 13, 2025
1 parent 1675d32 commit 5ef5b68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/json/json_encoder.c
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,7 @@ zend_result php_json_encode_zval(smart_str *buf, zval *val, int options, php_jso
/* Avoid modifications (and potential freeing) of the array through a reference when a
* jsonSerialize() method is invoked. */
zval zv;
int res;
zend_result res;
ZVAL_COPY(&zv, val);
res = php_json_encode_array(buf, &zv, options, encoder);
zval_ptr_dtor_nogc(&zv);
Expand Down

0 comments on commit 5ef5b68

Please sign in to comment.