Skip to content

Commit e9fcb5b

Browse files
authored
Disable zend_rc_debug during dl() (#8552)
Newly added dl() tests trigger an assertion in ZEND_RC_DEBUG builds. This change disables zend_rc_debug to allows these tests to pass until this issue is resolved.
1 parent c430116 commit e9fcb5b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

ext/standard/dl.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,19 @@ PHPAPI PHP_FUNCTION(dl)
5858
RETURN_FALSE;
5959
}
6060

61+
#if ZEND_RC_DEBUG
62+
bool orig_rc_debug = zend_rc_debug;
63+
zend_rc_debug = false;
64+
#endif
65+
6166
php_dl(filename, MODULE_TEMPORARY, return_value, 0);
6267
if (Z_TYPE_P(return_value) == IS_TRUE) {
6368
EG(full_tables_cleanup) = 1;
6469
}
70+
71+
#if ZEND_RC_DEBUG
72+
zend_rc_debug = orig_rc_debug;
73+
#endif
6574
}
6675
/* }}} */
6776

0 commit comments

Comments
 (0)