]> granicus.if.org Git - php/commitdiff
fix dl() function
authorAntony Dovgal <tony2001@php.net>
Wed, 30 Sep 2015 13:40:29 +0000 (14:40 +0100)
committerAntony Dovgal <tony2001@php.net>
Wed, 30 Sep 2015 13:43:53 +0000 (14:43 +0100)
..which was using old macro

ext/standard/dl.c

index cadbc140cc71a91e6d8a0247b9cad76e59107d7e..19d715d4a8434a81101a7cf9159f31f381525eec 100644 (file)
@@ -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)