mirror of
https://github.com/danog/MadelineProto.git
synced 2025-01-12 05:18:21 +01:00
20 lines
415 B
PHP
20 lines
415 B
PHP
<?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;
|
|
}
|
|
}
|
|
if (!function_exists('error_clear_last')) {
|
|
function error_clear_last() {
|
|
@trigger_error("");
|
|
}
|
|
}
|