Skip to content

Commit 09512ec

Browse files
committed
ext/json: fix php_json_escape_string() return type
1 parent c29e86f commit 09512ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/json/php_json_encoder.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,6 @@ static inline void php_json_encode_init(php_json_encoder *encoder)
3535

3636
zend_result php_json_encode_zval(smart_str *buf, zval *val, int options, php_json_encoder *encoder);
3737

38-
int php_json_escape_string(smart_str *buf, const char *s, size_t len, int options, php_json_encoder *encoder);
38+
zend_result php_json_escape_string(smart_str *buf, const char *s, size_t len, int options, php_json_encoder *encoder);
3939

4040
#endif /* PHP_JSON_ENCODER_H */

0 commit comments

Comments
 (0)