Diff for /embedaddon/php/main/output.c between versions 1.1.1.2 and 1.1.1.3

version 1.1.1.2, 2012/05/29 12:34:35 version 1.1.1.3, 2013/07/22 01:32:11
Line 2 Line 2
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
    | PHP Version 5                                                        |     | PHP Version 5                                                        |
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
   | Copyright (c) 1997-2012 The PHP Group                                |   | Copyright (c) 1997-2013 The PHP Group                                |
    +----------------------------------------------------------------------+     +----------------------------------------------------------------------+
    | This source file is subject to version 3.01 of the PHP license,      |     | This source file is subject to version 3.01 of the PHP license,      |
    | that is bundled with this package in the file LICENSE, and is        |     | that is bundled with this package in the file LICENSE, and is        |
Line 214  PHPAPI void php_output_register_constants(TSRMLS_D) Line 214  PHPAPI void php_output_register_constants(TSRMLS_D)
  * Used by SAPIs to disable output */   * Used by SAPIs to disable output */
 PHPAPI void php_output_set_status(int status TSRMLS_DC)  PHPAPI void php_output_set_status(int status TSRMLS_DC)
 {  {
        OG(flags) = status & 0xf;        OG(flags) = (OG(flags) & ~0xf) | (status & 0xf);
 }  }
 /* }}} */  /* }}} */
   
Line 297  PHPAPI int php_output_clean(TSRMLS_D) Line 297  PHPAPI int php_output_clean(TSRMLS_D)
         php_output_context context;          php_output_context context;
   
         if (OG(active) && (OG(active)->flags & PHP_OUTPUT_HANDLER_CLEANABLE)) {          if (OG(active) && (OG(active)->flags & PHP_OUTPUT_HANDLER_CLEANABLE)) {
                 OG(active)->buffer.used = 0;  
                 php_output_context_init(&context, PHP_OUTPUT_HANDLER_CLEAN TSRMLS_CC);                  php_output_context_init(&context, PHP_OUTPUT_HANDLER_CLEAN TSRMLS_CC);
                 php_output_handler_op(OG(active), &context);                  php_output_handler_op(OG(active), &context);
                 php_output_context_dtor(&context);                  php_output_context_dtor(&context);
Line 1025  static inline php_output_handler_status_t php_output_h Line 1024  static inline php_output_handler_status_t php_output_h
                 case PHP_OUTPUT_HANDLER_SUCCESS:                  case PHP_OUTPUT_HANDLER_SUCCESS:
                         /* no more buffered data */                          /* no more buffered data */
                         handler->buffer.used = 0;                          handler->buffer.used = 0;
                           handler->flags |= PHP_OUTPUT_HANDLER_PROCESSED;
                         break;                          break;
         }          }
   
Line 1225  static inline int php_output_stack_pop(int flags TSRML Line 1225  static inline int php_output_stack_pop(int flags TSRML
                         /* signal that we're cleaning up */                          /* signal that we're cleaning up */
                         if (flags & PHP_OUTPUT_POP_DISCARD) {                          if (flags & PHP_OUTPUT_POP_DISCARD) {
                                 context.op |= PHP_OUTPUT_HANDLER_CLEAN;                                  context.op |= PHP_OUTPUT_HANDLER_CLEAN;
                                 orphan->buffer.used = 0;  
                         }                          }
                         php_output_handler_op(orphan, &context);                          php_output_handler_op(orphan, &context);
                 }                  }

Removed from v.1.1.1.2  
changed lines
  Added in v.1.1.1.3


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>