From 12a8c3f6e79ff159cce455ff9944a03aa70ff589 Mon Sep 17 00:00:00 2001 From: Jakub Zelenka Date: Wed, 24 Aug 2016 20:46:33 +0100 Subject: Add initial failure checking for json_encode --- ext/json/php_json_encoder.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/json/php_json_encoder.h') diff --git a/ext/json/php_json_encoder.h b/ext/json/php_json_encoder.h index b10f7a614a..0fec9174b5 100644 --- a/ext/json/php_json_encoder.h +++ b/ext/json/php_json_encoder.h @@ -22,6 +22,6 @@ #include "php.h" #include "zend_smart_str.h" -void php_json_encode_zval(smart_str *buf, zval *val, int options); +int php_json_encode_zval(smart_str *buf, zval *val, int options); #endif /* PHP_JSON_ENCODER_H */ -- cgit v1.2.1