Browse Source

Remainder of the 34191 bug fix.

migration/RELEASE_1_0_0
Ilia Alshanetsky 21 years ago
parent
commit
0408e53679
  1. 3
      main/output.c

3
main/output.c

@ -294,6 +294,9 @@ PHPAPI void php_end_ob_buffer(zend_bool send_buffer, zend_bool just_flush TSRMLS
OG(ob_nesting_level)--;
if (send_buffer) {
if (just_flush) { /* if flush is called prior to proper end, ensure presence of NUL */
final_buffer[final_buffer_length] = '\0';
}
OG(php_body_write)(final_buffer, final_buffer_length TSRMLS_CC);
}

Loading…
Cancel
Save