com php-src: fix dl() function: ext/standard/dl.c

From: Date: Wed, 30 Sep 2015 13:40:29 +0000
Subject: com php-src: fix dl() function: ext/standard/dl.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-89248@lists.php.net to get a copy of this message
Commit: 99d563407998e8b91c2b2b5437e2490f0c76e2d2 Author: Antony Dovgal <tony2001@php.net> Wed, 30 Sep 2015 14:40:29 +0100 Parents: 64a79817ce829b2d474e5e8aca87e2ecd1fadfb7 Branches: PHP-7.0 Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=99d563407998e8b91c2b2b5437e2490f0c76e2d2 Log: fix dl() function .which was using old macro Changed paths: M ext/standard/dl.c Diff: diff --git a/ext/standard/dl.c b/ext/standard/dl.c index cadbc14..19d715d 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)

« previous php.cvs (#89248) next »