Browse Source

fixed ZEND_DEBUG usage

pull/668/head
Anatol Belski 12 years ago
parent
commit
0d5121a3c7
  1. 2
      Zend/zend.c
  2. 1
      ext/interbase/php_ibase_includes.h
  3. 4
      ext/standard/html.c

2
Zend/zend.c

@ -954,7 +954,7 @@ ZEND_API void zend_deactivate(TSRMLS_D) /* {{{ */
zend_destroy_rsrc_list(&EG(regular_list) TSRMLS_CC);
#ifdef ZEND_DEBUG
#if ZEND_DEBUG
if (GC_G(gc_enabled) && !CG(unclean_shutdown)) {
gc_collect_cycles(TSRMLS_C);
}

1
ext/interbase/php_ibase_includes.h

@ -35,6 +35,7 @@
#define IB_STATUS (IBG(status))
/* XXX ZEND_DEBUG_ is misleading, it should be something like IBASE_DEBUG. */
#ifdef ZEND_DEBUG_
#define IBDEBUG(a) php_printf("::: %s (%d)\n", a, __LINE__);
#endif

4
ext/standard/html.c

@ -901,7 +901,7 @@ static inline size_t write_octet_sequence(unsigned char *buf, enum entity_charse
#if 0
return php_mb2_int_to_char(buf, code);
#else
#ifdef ZEND_DEBUG
#if ZEND_DEBUG
assert(code <= 0xFFU);
#endif
*buf = code;
@ -912,7 +912,7 @@ static inline size_t write_octet_sequence(unsigned char *buf, enum entity_charse
#if 0 /* idem */
return php_mb2_int_to_char(buf, code);
#else
#ifdef ZEND_DEBUG
#if ZEND_DEBUG
assert(code <= 0xFFU);
#endif
*buf = code;

Loading…
Cancel
Save