gc_enable is not called if running with HHVM
Since HHVM doesn't support garbage collector (for obvious reasons), the following patch make Ratchet works with HHVM as well.
This commit is contained in:
parent
9ab9894a67
commit
daaff6c326
@ -33,7 +33,10 @@ class IoServer {
|
|||||||
* @param \React\EventLoop\LoopInterface|null $loop The React looper to run the Ratchet application off of
|
* @param \React\EventLoop\LoopInterface|null $loop The React looper to run the Ratchet application off of
|
||||||
*/
|
*/
|
||||||
public function __construct(MessageComponentInterface $app, ServerInterface $socket, LoopInterface $loop = null) {
|
public function __construct(MessageComponentInterface $app, ServerInterface $socket, LoopInterface $loop = null) {
|
||||||
gc_enable();
|
if (false === strpos(PHP_VERSION, "hiphop")) {
|
||||||
|
gc_enable();
|
||||||
|
}
|
||||||
|
|
||||||
set_time_limit(0);
|
set_time_limit(0);
|
||||||
ob_implicit_flush();
|
ob_implicit_flush();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user