@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | * @param string $input The input string |
6 | 6 | * @param int $position |
7 | 7 | * @param int|null $length |
8 | - * @return string|boolean The extracted part of string or false on failure |
|
8 | + * @return string The extracted part of string or false on failure |
|
9 | 9 | */ |
10 | 10 | function mb_orig_substr($input, $position, $length = null) { |
11 | 11 | return substr($input, $position, $length); |
@@ -24,11 +24,18 @@ discard block |
||
24 | 24 | return serialize($m); |
25 | 25 | } |
26 | 26 | |
27 | + /** |
|
28 | + * @param string $m |
|
29 | + */ |
|
27 | 30 | function igbinary_unserialize($m) { |
28 | 31 | return unserialize($m); |
29 | 32 | } |
30 | 33 | } |
31 | 34 | if (!function_exists('setTimeout')) { |
35 | + |
|
36 | + /** |
|
37 | + * @param Closure $cb |
|
38 | + */ |
|
32 | 39 | function setTimeout($cb, $timeout = null, $id = null, $priority = null) { |
33 | 40 | return \PHPDaemon\Core\Timer::add($cb, $timeout, $id, $priority); |
34 | 41 | } |