From 99d563407998e8b91c2b2b5437e2490f0c76e2d2 Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Wed, 30 Sep 2015 14:40:29 +0100 Subject: [PATCH] fix dl() function ..which was using old macro --- ext/standard/dl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/dl.c b/ext/standard/dl.c index cadbc140cc71a..19d715d4a8434 100644 --- a/ext/standard/dl.c +++ b/ext/standard/dl.c @@ -71,7 +71,7 @@ PHPAPI PHP_FUNCTION(dl) } php_dl(filename, MODULE_TEMPORARY, return_value, 0); - if (Z_LVAL_P(return_value) == 1) { + if (Z_TYPE_P(return_value) == IS_TRUE) { EG(full_tables_cleanup) = 1; } } @@ -237,7 +237,7 @@ PHP_MINFO_FUNCTION(dl) PHPAPI void php_dl(char *file, int type, zval *return_value, int start_now) { php_error_docref(NULL, E_WARNING, "Cannot dynamically load %s - dynamic modules are not supported", file); - RETURN_FALSE; + RETVAL_FALSE; } PHP_MINFO_FUNCTION(dl)