diff --git a/ext/standard/dl.c b/ext/standard/dl.c index 77d296ced77a9..40608c9ec7ae5 100644 --- a/ext/standard/dl.c +++ b/ext/standard/dl.c @@ -58,10 +58,19 @@ PHPAPI PHP_FUNCTION(dl) RETURN_FALSE; } +#if ZEND_RC_DEBUG + bool orig_rc_debug = zend_rc_debug; + zend_rc_debug = false; +#endif + php_dl(filename, MODULE_TEMPORARY, return_value, 0); if (Z_TYPE_P(return_value) == IS_TRUE) { EG(full_tables_cleanup) = 1; } + +#if ZEND_RC_DEBUG + zend_rc_debug = orig_rc_debug; +#endif } /* }}} */