Merge pull request #153 from kinncj/master

gc_enable is not called if running with HHVM
This commit is contained in:
Chris Boden 2013-12-01 08:01:32 -08:00
commit 5d437cd853

View File

@ -33,7 +33,10 @@ class IoServer {
* @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) {
gc_enable();
if (false === strpos(PHP_VERSION, "hiphop")) {
gc_enable();
}
set_time_limit(0);
ob_implicit_flush();