summaryrefslogtreecommitdiff
path: root/ext/json/json.c
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@php.net>2007-05-25 13:24:50 +0000
committerHannes Magnusson <bjori@php.net>2007-05-25 13:24:50 +0000
commitde4408c9af061fc318702f5665ae6c35b0c61ee3 (patch)
treeae460642c803cd04f630f2233089924059356803 /ext/json/json.c
parentd9c97cbd47ac002263498c3007fae609d7426eed (diff)
downloadphp-git-de4408c9af061fc318702f5665ae6c35b0c61ee3.tar.gz
MFH: protos (patch by jeffg at activestate dot com)
Diffstat (limited to 'ext/json/json.c')
-rw-r--r--ext/json/json.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/ext/json/json.c b/ext/json/json.c
index 93aec133f0..fefdf9601e 100644
--- a/ext/json/json.c
+++ b/ext/json/json.c
@@ -387,6 +387,8 @@ static void json_encode_r(smart_str *buf, zval *val TSRMLS_DC) {
return;
}
+/* {{{ proto string json_encode(mixed data)
+ Returns the JSON representation of a value */
static PHP_FUNCTION(json_encode)
{
zval *parameter;
@@ -402,7 +404,10 @@ static PHP_FUNCTION(json_encode)
smart_str_free(&buf);
}
+/* }}} */
+/* {{{ proto mixed json_decode(string json [, bool assoc])
+ Decodes the JSON representation into a PHP value */
static PHP_FUNCTION(json_decode)
{
char *parameter;
@@ -476,6 +481,7 @@ static PHP_FUNCTION(json_decode)
}
}
}
+/* }}} */
/*
* Local variables: