com php-src: fix dl() function: ext/standard/dl.c
| From: | Antony Dovgal | Date: | Wed, 30 Sep 2015 13:43:53 +0000 |
| Subject: | com php-src: fix dl() function: ext/standard/dl.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-89249@lists.php.net to get a copy of this message | ||
Commit: 94cc5faa17a37b065e77c2445c77b27c725896ec
Author: Antony Dovgal <tony2001@php.net> Wed, 30 Sep 2015 14:40:29 +0100
Parents: 914eef237cc9f94a2fbe04240d010bcfe267572e
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=94cc5faa17a37b065e77c2445c77b27c725896ec
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)