2019-06-18 12:31:44 +02:00
|
|
|
<?php
|
|
|
|
// Polyfill for some PHP 5 functions
|
|
|
|
function callMe($allable, ...$args)
|
|
|
|
{
|
|
|
|
return $allable(...$args);
|
|
|
|
}
|
|
|
|
function returnMe($res) {
|
|
|
|
return $res;
|
|
|
|
}
|
|
|
|
if (!function_exists('is_iterable')) {
|
|
|
|
function is_iterable($var) {
|
|
|
|
return is_array($var) || $var instanceof Traversable;
|
|
|
|
}
|
|
|
|
}
|
2019-06-21 12:16:48 +02:00
|
|
|
if (!function_exists('error_clear_last')) {
|
2019-06-21 16:04:05 +02:00
|
|
|
function error_clear_last() {
|
|
|
|
@trigger_error("");
|
|
|
|
}
|
2019-06-21 12:16:48 +02:00
|
|
|
}
|