Browse Source

optimizer: fix devel debug output

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1280 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
3.1
Xuefer 8 years ago
parent
commit
c8b77e8be6
  1. 2
      mod_optimizer/xc_optimizer.c
  2. 2
      xcache/xc_compatibility.h

2
mod_optimizer/xc_optimizer.c

@ -240,7 +240,7 @@ static void op_snprint(zend_op_array *op_array, char *buf, int size, zend_uchar
php_output_start_default(TSRMLS_C);
php_var_export(&zv, 1 TSRMLS_CC);
php_output_get_contents(&result TSRMLS_CC);
php_output_end(TSRMLS_C);
php_output_discard(TSRMLS_C);
snprintf(buf, size, Z_STRVAL(result));
zval_dtor(&result);

2
xcache/xc_compatibility.h

@ -113,7 +113,7 @@ typedef znode znode_op;
static inline int php_output_start_default(TSRMLS_D) { php_start_ob_buffer(NULL, 0, 1 TSRMLS_CC); }
static inline int php_output_get_contents(zval *p TSRMLS_DC) { php_ob_get_buffer(p TSRMLS_CC); }
static inline int php_output_end(TSRMLS_D) { php_end_ob_buffer(0, 0 TSRMLS_CC); }
static inline int php_output_discard(TSRMLS_D) { php_end_ob_buffer(0, 0 TSRMLS_CC); }
#endif
/* unicode */

Loading…
Cancel
Save