diff options
author | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-09-04 13:10:11 +0400 |
---|---|---|
committer | Fabian Becker <fabian.becker@uni-tuebingen.de> | 2013-09-04 13:10:11 +0400 |
commit | 9cbd98fb98f896e3eb261cea7a0e437ee9ba4642 (patch) | |
tree | 86afd239215216a8ab588ee30a1c6c4ae181a76d /libs | |
parent | 74259d62bce75c60c837666a42d93020f2f9339a (diff) |
Small fix for PclZip library.
function_exists only works for create_function results, not closures.
Diffstat (limited to 'libs')
-rw-r--r-- | libs/PclZip/pclzip.lib.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/PclZip/pclzip.lib.php b/libs/PclZip/pclzip.lib.php index 686aaa9f63..3ba58a4d0f 100644 --- a/libs/PclZip/pclzip.lib.php +++ b/libs/PclZip/pclzip.lib.php @@ -1763,7 +1763,7 @@ $v_function_name = $p_options_list[$i+1]; // ----- Check that the value is a valid existing function - if (!function_exists($v_function_name)) { + if (!is_callable($v_function_name)) { // ----- Error log PclZip::privErrorLog(PCLZIP_ERR_INVALID_OPTION_VALUE, "Function '".$v_function_name."()' is not an existing function for option '".PclZipUtilOptionText($p_options_list[$i])."'"); |