[prev in list] [next in list] [prev in thread] [next in thread]
List: php-cvs
Subject: [PHP-CVS] com php-src: fix dl() function: ext/standard/dl.c
From: Antony Dovgal <tony2001 () php ! net>
Date: 2015-09-30 13:40:29
Message-ID: php-mail-28911c5cc381a9a8c9be4f637fd985021643482655 () git ! php ! net
[Download RAW message or body]
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)
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic