diff options
author | Antony Dovgal <tony2001@php.net> | 2005-11-17 12:02:57 +0000 |
---|---|---|
committer | Antony Dovgal <tony2001@php.net> | 2005-11-17 12:02:57 +0000 |
commit | a639716fba745cb262796860519778008a00d705 (patch) | |
tree | d6154858c0b2bade89b16b6f097f6017873cde4a | |
parent | 5c5202210bd84e9b32a54241cc13f07e708baaec (diff) | |
download | php-git-a639716fba745cb262796860519778008a00d705.tar.gz |
fix #35257 in a smarter way
-rw-r--r-- | main/output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/output.c b/main/output.c index a922756e80..e0f4ad311d 100644 --- a/main/output.c +++ b/main/output.c @@ -296,7 +296,7 @@ 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 && strlen(final_buffer)) { /* if flush is called prior to proper end, ensure presence of NUL */ + if (just_flush && final_buffer[0] != '\0') { /* 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); |