Skip to content

Call to undefined method in memory benchmark #142

@kelunik

Description

@kelunik
kelunik@kelunik ❯ ~/GitHub/reactphp/event-loop ❯ 16:13:08 ❯ master
$ time php examples/95-benchmark-memory.php 
PHP Version:		7.2.0
Loop			React\EventLoop\StreamSelectLoop
Time			Fri, 22 Dec 2017 15:13:19 +0000
--------------------------------------------------
PHP Fatal error:  Uncaught Error: Call to undefined method React\EventLoop\Timer\Timer::cancel() in /home/kelunik/GitHub/reactphp/event-loop/examples/95-benchmark-memory.php:39
Stack trace:
#0 [internal function]: {closure}(Object(React\EventLoop\Timer\Timer))
#1 /home/kelunik/GitHub/reactphp/event-loop/src/Timer/Timers.php(99): call_user_func(Object(Closure), Object(React\EventLoop\Timer\Timer))
#2 /home/kelunik/GitHub/reactphp/event-loop/src/StreamSelectLoop.php(182): React\EventLoop\Timer\Timers->tick()
#3 /home/kelunik/GitHub/reactphp/event-loop/examples/95-benchmark-memory.php(59): React\EventLoop\StreamSelectLoop->run()
#4 {main}
  thrown in /home/kelunik/GitHub/reactphp/event-loop/examples/95-benchmark-memory.php on line 39

real	0m1,065s
user	0m0,127s
sys	0m0,012s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions