Permalink
Browse files

Allow closures as callbacks in PclZip

  • Loading branch information...
1 parent cf6d4dc commit 636845e832872b3a99dd7e0d6139d3be72b9d2c0 @cdujeu cdujeu committed May 21, 2016
Showing with 1 addition and 1 deletion.
  1. +1 −1 core/src/core/src/lib/pclzip.lib.php
@@ -1765,7 +1765,7 @@ function privParseOptions(&$p_options_list, $p_size, &$v_result_list, $v_request
$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])."'");

0 comments on commit 636845e

Please sign in to comment.