Init Repo

This commit is contained in:
root
2019-09-06 23:53:10 +08:00
commit f0ef89dfbb
7905 changed files with 914138 additions and 0 deletions

View File

@ -0,0 +1,28 @@
--TEST--
global_function: swoole_event_write
--FILE--
<?php
require_once __DIR__ . '/../include/bootstrap.php';
$fp = stream_socket_client("tcp://www.qq.com:80", $errno, $errstr, 30);
swoole_event_add($fp, function($fp) {
$resp = fread($fp, 8192);
//socket处理完成后从epoll事件中移除socket
swoole_event_del($fp);
fclose($fp);
echo "SUCCESS\n";
});
swoole_event_write($fp, "GET / HTTP/1.1\r\nHost: www.qq.com\r\n\r\n");
echo "Finish\n";
?>
--EXPECT--
Finish
SUCCESS