Skip to content

Commit 60574ea

Browse files
committed
Fix bug #73526 (php_json_encode depth issue)
1 parent 685b129 commit 60574ea

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ PHP NEWS
1717
This may be enabled again using envirionment variable USE_ZEND_DTRACE=1.
1818
(Dmitry)
1919

20+
- JSON:
21+
. Fixed bug #73526 (php_json_encode depth issue). (Jakub Zelenka)
22+
2023
- Mysqlnd:
2124
. Fixed bug #64526 (Add missing mysqlnd.* parameters to php.ini-*). (cmb)
2225

ext/json/json.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ static PHP_GINIT_FUNCTION(json)
148148
#endif
149149
json_globals->encoder_depth = 0;
150150
json_globals->error_code = 0;
151-
json_globals->encode_max_depth = 0;
151+
json_globals->encode_max_depth = PHP_JSON_PARSER_DEFAULT_DEPTH;
152152
}
153153
/* }}} */
154154

0 commit comments

Comments
 (0)