<?php tmpfile(): resource|false
<?php } $fd = self::getNextFreeFd(); $tmpfile = tmpfile(); assert($tmpfile !== false); $loop = $this->getMockBuilder('React\EventLoop\LoopInterface')->getMock();
<?php public static function getNextFreeFd() { $tmp = tmpfile(); $dir = @scandir('/dev/fd'); if ($dir === false) {