summaryrefslogtreecommitdiff
path: root/ext/json/json.c
diff options
context:
space:
mode:
authorAdam Harvey <aharvey@php.net>2010-09-16 14:15:19 +0000
committerAdam Harvey <aharvey@php.net>2010-09-16 14:15:19 +0000
commitd8b8d22a0d1ae85b24beeab7707c2e4e8217ee07 (patch)
treec9c4dfa9f0f040c915c8bdf7e060ec8f954ba9fe /ext/json/json.c
parent726fe638bb0a0f52ea899d18095a9d35297fa2af (diff)
downloadphp-git-d8b8d22a0d1ae85b24beeab7707c2e4e8217ee07.tar.gz
Rebalance the folds in json.c.
Diffstat (limited to 'ext/json/json.c')
-rw-r--r--ext/json/json.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/json/json.c b/ext/json/json.c
index 3e893f0e8d..1836c7f7e2 100644
--- a/ext/json/json.c
+++ b/ext/json/json.c
@@ -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) /* {{{ */
{