Skip to content

Commit

Permalink
fix dl() function
Browse files Browse the repository at this point in the history
..which was using old macro
  • Loading branch information
tony2001 committed Sep 30, 2015
1 parent 64a7981 commit 99d5634
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/standard/dl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 99d5634

Please sign in to comment.