mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
Improved handling of output buffers (see news)\n#No trim for the string parameter...
This commit is contained in:
parent
2e29e53e00
commit
9c8ba935d6
8 changed files with 185 additions and 70 deletions
|
@ -813,13 +813,7 @@ int php_request_startup(TSRMLS_D)
|
|||
}
|
||||
|
||||
if (PG(output_handler) && PG(output_handler)[0]) {
|
||||
zval *output_handler;
|
||||
|
||||
ALLOC_INIT_ZVAL(output_handler);
|
||||
Z_STRLEN_P(output_handler) = strlen(PG(output_handler)); /* this can be optimized */
|
||||
Z_STRVAL_P(output_handler) = estrndup(PG(output_handler), Z_STRLEN_P(output_handler));
|
||||
Z_TYPE_P(output_handler) = IS_STRING;
|
||||
php_start_ob_buffer(output_handler, 0, 1 TSRMLS_CC);
|
||||
php_start_ob_buffer_named(PG(output_handler), 0, 1 TSRMLS_CC);
|
||||
}
|
||||
else if (PG(output_buffering)) {
|
||||
if (PG(output_buffering)>1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue