Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
Allow closures as callbacks in PclZip
Browse files Browse the repository at this point in the history
  • Loading branch information
cdujeu committed May 21, 2016
1 parent cf6d4dc commit 636845e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/core/src/lib/pclzip.lib.php
Expand Up @@ -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])."'");

Expand Down

0 comments on commit 636845e

Please sign in to comment.