Skip to content

Commit f855919

Browse files
committed
Fix test failed due to new feature introduced in 45d596e
1 parent 9c73c8d commit f855919

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

ext/json/json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, int str_len,
700700
/* }}} */
701701

702702

703-
/* {{{ proto string json_encode(mixed data [, int options])
703+
/* {{{ proto string json_encode(mixed data [, int options[, int depth]])
704704
Returns the JSON representation of a value */
705705
static PHP_FUNCTION(json_encode)
706706
{

ext/json/tests/json_encode_error.phpt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,5 @@ Warning: json_encode() expects at least 1 parameter, 0 given in %s on line %d
3434
NULL
3535

3636
-- Testing json_encode() function with more than expected no. of arguments --
37-
38-
Warning: json_encode() expects at most 2 parameters, 3 given in %s on line %d
39-
NULL
37+
string(5) ""abc""
4038
===Done===

0 commit comments

Comments
 (0)