]> granicus.if.org Git - php/commitdiff
Fix test failed due to new feature introduced in 45d596ea
authorXinchen Hui <laruence@php.net>
Sun, 29 Jul 2012 15:35:06 +0000 (23:35 +0800)
committerXinchen Hui <laruence@php.net>
Sun, 29 Jul 2012 15:35:06 +0000 (23:35 +0800)
ext/json/json.c
ext/json/tests/json_encode_error.phpt

index dab423084c41691c607e904bd2475a61cdc2c77b..e4bb8a5d4be24791f6c41a4505900e3b7eb682d2 100644 (file)
@@ -700,7 +700,7 @@ PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, int str_len,
 /* }}} */
 
 
-/* {{{ proto string json_encode(mixed data [, int options])
+/* {{{ proto string json_encode(mixed data [, int options[, int depth]])
    Returns the JSON representation of a value */
 static PHP_FUNCTION(json_encode)
 {
index d130dd960c5b7caf8271cf06ff407495dd86fcba..547c8bef17bf5ea552740fa84aea0e965d4255fd 100644 (file)
@@ -34,7 +34,5 @@ Warning: json_encode() expects at least 1 parameter, 0 given in %s on line %d
 NULL
 
 -- Testing json_encode() function with more than expected no. of arguments --
-
-Warning: json_encode() expects at most 2 parameters, 3 given in %s on line %d
-NULL
+string(5) ""abc""
 ===Done===