diff --git a/ext/standard/dl.c b/ext/standard/dl.c index e4b668139a4..ed1412a919f 100644 --- a/ext/standard/dl.c +++ b/ext/standard/dl.c @@ -85,7 +85,9 @@ PHP_FUNCTION(dl) } php_dl(filename, MODULE_TEMPORARY, return_value, 0 TSRMLS_CC); - EG(full_tables_cleanup) = 1; + if (Z_LVAL_P(return_value) == 1) { + EG(full_tables_cleanup) = 1; + } } /* }}} */