Skip to content

Commit

Permalink
Callback: workaround for Suhosin extension (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
radekdostal authored and dg committed Mar 7, 2017
1 parent 053b3e1 commit 7ed62c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/Callback.php
Expand Up @@ -95,7 +95,7 @@ public static function invokeSafe($function, array $args, $onError)
});

try {
return $function(...$args);
return call_user_func_array($function, $args); // https://github.com/sektioneins/suhosin/issues/114
} finally {
restore_error_handler();
}
Expand Down

0 comments on commit 7ed62c1

Please sign in to comment.