Add initial failure checking for json_encode

This commit is contained in:
Jakub Zelenka 2016-08-24 20:46:33 +01:00
parent 0e709fe42d
commit 12a8c3f6e7
3 changed files with 57 additions and 43 deletions

View file

@ -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 */