- edited description
EvPeriodic reschedule_cb error!
Issue #33
resolved
The following code is running incorrectly:
<?php // Tick each 10.5 seconds function reschedule_cb ($watcher, $now) { return $now + (10.5. - fmod($now, 10.5)); } $w = new EvPeriodic(0., 0., "reschedule_cb", function ($w, $revents) { echo time(), PHP_EOL; }); Ev::run();
PHP version: 7.1.10
The results are as follows:
1508837704 1508837704 1508837704 1508837704 1508837704 1508837704 1508837704 1508837704 1508837704 1508837704 1508837704 1508837704 1508837704 1508837704 1508837704 1508837704 1508837705 1508837705 1508837705 1508837705 1508837705 1508837705 1508837705 1508837705 1508837705 1508837705 1508837705 1508837705 1508837705
Comments (3)
-
repo owner -
repo owner -
assigned issue to
-
assigned issue to
-
repo owner - changed status to resolved
Fixed bug
#33in PHP 7 where the return value of EvPeriodic reschedule callback was ignored→ <<cset 3cf093194344>>
- Log in to comment