(Remi)
- FPM:
- . Fixed bug #66482 (unknown entry 'priority' in php-fpm.conf).
+ . Fixed bug #66482 (unknown entry 'priority' in php-fpm.conf).
+
++- JSON:
++ . Fixed bug #66021 (Blank line inside empty array/object when
++ JSON_PRETTY_PRINT is set). (Kevin Israel)
++
+- mysqli:
+ . Fixed problem in mysqli_commit()/mysqli_rollback() with second parameter
+ (extra comma) and third parameters (lack of escaping). (Andrey)
- SimpleXML:
. Fixed bug #66084 (simplexml_load_string() mangles empty node name)
}
}
+ if (JSON_G(encoder_depth) > JSON_G(encode_max_depth)) {
+ JSON_G(error_code) = PHP_JSON_ERROR_DEPTH;
+ }
--JSON_G(encoder_depth);
- json_pretty_print_char(buf, options, '\n' TSRMLS_CC);
- json_pretty_print_indent(buf, options TSRMLS_CC);
+
+ /* Only keep closing bracket on same line for empty arrays/objects */
+ if (need_comma) {
+ json_pretty_print_char(buf, options, '\n' TSRMLS_CC);
+ json_pretty_print_indent(buf, options TSRMLS_CC);
+ }
if (r == PHP_JSON_OUTPUT_ARRAY) {
smart_str_appendc(buf, ']');