diff options
author | Hannes Magnusson <bjori@php.net> | 2007-05-25 13:24:50 +0000 |
---|---|---|
committer | Hannes Magnusson <bjori@php.net> | 2007-05-25 13:24:50 +0000 |
commit | de4408c9af061fc318702f5665ae6c35b0c61ee3 (patch) | |
tree | ae460642c803cd04f630f2233089924059356803 /ext/json/json.c | |
parent | d9c97cbd47ac002263498c3007fae609d7426eed (diff) | |
download | php-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.c | 6 |
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: |