Skip to content

Commit 0d5121a

Browse files
committed
fixed ZEND_DEBUG usage
1 parent 06ae920 commit 0d5121a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Zend/zend.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,7 @@ ZEND_API void zend_deactivate(TSRMLS_D) /* {{{ */
954954

955955
zend_destroy_rsrc_list(&EG(regular_list) TSRMLS_CC);
956956

957-
#ifdef ZEND_DEBUG
957+
#if ZEND_DEBUG
958958
if (GC_G(gc_enabled) && !CG(unclean_shutdown)) {
959959
gc_collect_cycles(TSRMLS_C);
960960
}

ext/interbase/php_ibase_includes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535

3636
#define IB_STATUS (IBG(status))
3737

38+
/* XXX ZEND_DEBUG_ is misleading, it should be something like IBASE_DEBUG. */
3839
#ifdef ZEND_DEBUG_
3940
#define IBDEBUG(a) php_printf("::: %s (%d)\n", a, __LINE__);
4041
#endif

ext/standard/html.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -901,7 +901,7 @@ static inline size_t write_octet_sequence(unsigned char *buf, enum entity_charse
901901
#if 0
902902
return php_mb2_int_to_char(buf, code);
903903
#else
904-
#ifdef ZEND_DEBUG
904+
#if ZEND_DEBUG
905905
assert(code <= 0xFFU);
906906
#endif
907907
*buf = code;
@@ -912,7 +912,7 @@ static inline size_t write_octet_sequence(unsigned char *buf, enum entity_charse
912912
#if 0 /* idem */
913913
return php_mb2_int_to_char(buf, code);
914914
#else
915-
#ifdef ZEND_DEBUG
915+
#if ZEND_DEBUG
916916
assert(code <= 0xFFU);
917917
#endif
918918
*buf = code;

0 commit comments

Comments
 (0)