]> granicus.if.org Git - php/commitdiff
MFH: protos (patch by jeffg at activestate dot com)
authorHannes Magnusson <bjori@php.net>
Fri, 25 May 2007 13:24:50 +0000 (13:24 +0000)
committerHannes Magnusson <bjori@php.net>
Fri, 25 May 2007 13:24:50 +0000 (13:24 +0000)
ext/json/json.c

index 93aec133f063d92ec5dc843da417d689ee56dce9..fefdf9601e540005eb91f2fecd3cc070559aa018 100644 (file)
@@ -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: