1
0
mirror of https://github.com/php/php-src.git synced 2026-04-29 03:03:26 +02:00

Rebalance the folds in json.c.

This commit is contained in:
Adam Harvey
2010-09-16 14:15:19 +00:00
parent 726fe638bb
commit d8b8d22a0d
+3 -1
View File
@@ -77,6 +77,7 @@ static const zend_function_entry json_serializable_interface[] = {
PHP_ABSTRACT_ME(JsonSerializable, jsonSerialize, json_serialize_arginfo)
{ NULL, NULL, NULL }
};
/* }}} */
/* {{{ MINIT */
static PHP_MINIT_FUNCTION(json)
@@ -457,7 +458,7 @@ static void json_escape_string(smart_str *buf, char *s, int len, int options TSR
/* }}} */
static void json_encode_serializable_object(smart_str *buf, zval *val, int options TSRMLS_DC)
static void json_encode_serializable_object(smart_str *buf, zval *val, int options TSRMLS_DC) /* {{{ */
{
zend_class_entry *ce = Z_OBJCE_P(val);
zval *retval = NULL, fname;
@@ -488,6 +489,7 @@ static void json_encode_serializable_object(smart_str *buf, zval *val, int optio
zval_ptr_dtor(&retval);
}
/* }}} */
PHP_JSON_API void php_json_encode(smart_str *buf, zval *val, int options TSRMLS_DC) /* {{{ */
{