Skip to content

Commit 7beba28

Browse files
committed
remove redis, update swoole to 4.6
1 parent b6460cf commit 7beba28

File tree

262 files changed

+4286
-5877
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

262 files changed

+4286
-5877
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.*
2+
nbproject
3+
ftpsync.settings
4+
tags
5+
vendor
6+
system
7+
docs_xml_dir

conf/fetch.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515

1616
// 单类
1717
'eq' => array(
18-
'redis',
18+
// redis在PHPStorm中存在,暂不处理
19+
// 'redis',
1920
'yac',
2021
'co',
2122
),
@@ -34,6 +35,5 @@
3435
'yaf',
3536
'yaconf',
3637
'memcached',
37-
3838
)
3939
);

php_docs_code/co-/co-channel.php

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
/**
3+
* Co\channel Document
4+
*
5+
* @author Leelmes <i@chengxuan.li>
6+
*/
7+
namespace co;
8+
class channel {
9+
10+
public $capacity = 0;
11+
public $errCode = 0;
12+
13+
public function __construct($size = null) {}
14+
public function push($data, $timeout = null) {}
15+
public function pop($timeout = null) {}
16+
public function isEmpty() {}
17+
public function isFull() {}
18+
public function close() {}
19+
public function stats() {}
20+
public function length() {}
21+
}

php_docs_code/co-/co-client.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,17 @@ class client {
1212
const MSG_DONTWAIT = 64;
1313
const MSG_WAITALL = 256;
1414
public $errCode = 0;
15-
public $sock = 0;
16-
public $type = 0;
15+
public $errMsg = '';
16+
public $fd = -1;
17+
private $socket;
18+
public $type = 1;
1719
public $setting;
1820
public $connected = false;
1921

2022
public function __construct($type) {}
2123
public function __destruct() {}
2224
public function set($settings) {}
23-
public function connect($host, $port = null, $timeout = null) {}
25+
public function connect($host, $port = null, $timeout = null, $sock_flag = null) {}
2426
public function recv($timeout = null) {}
2527
public function peek($length = null) {}
2628
public function send($data) {}
@@ -34,5 +36,5 @@ public function isConnected() {}
3436
public function getsockname() {}
3537
public function getpeername() {}
3638
public function close() {}
37-
public function getSocket() {}
39+
public function exportSocket() {}
3840
}

php_docs_code/co-/co-context.php

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
<?php
2+
/**
3+
* Co\context Document
4+
*
5+
* @author Leelmes <i@chengxuan.li>
6+
*/
7+
namespace co;
8+
class context extends \ArrayObject implements \Countable,\Serializable,\ArrayAccess,\Traversable,\IteratorAggregate {
9+
10+
const STD_PROP_LIST = 1;
11+
const ARRAY_AS_PROPS = 2;
12+
13+
public function __construct($array = null, $flags = null, $iteratorClass = null) {}
14+
public function offsetExists($key) {}
15+
public function offsetGet($key) {}
16+
public function offsetSet($key, $value) {}
17+
public function offsetUnset($key) {}
18+
public function append($value) {}
19+
public function getArrayCopy() {}
20+
public function count() {}
21+
public function getFlags() {}
22+
public function setFlags($flags) {}
23+
public function asort($flags = null) {}
24+
public function ksort($flags = null) {}
25+
public function uasort($callback) {}
26+
public function uksort($callback) {}
27+
public function natsort() {}
28+
public function natcasesort() {}
29+
public function unserialize($data) {}
30+
public function serialize() {}
31+
public function __serialize() {}
32+
public function __unserialize($data) {}
33+
public function getIterator() {}
34+
public function exchangeArray($array) {}
35+
public function setIteratorClass($iteratorClass) {}
36+
public function getIteratorClass() {}
37+
public function __debugInfo() {}
38+
}

php_docs_code/swoole/Swoole-MySQL-Exception.php renamed to php_docs_code/co-/co-coroutine-curl-exception.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,17 @@
11
<?php
22
/**
3-
* Swoole\MySQL\Exception Document
3+
* Co\coroutine\curl\exception Document
44
*
55
* @author Leelmes <i@chengxuan.li>
66
*/
7-
namespace Swoole\MySQL;
8-
class Exception extends \Exception implements \Throwable {
7+
namespace co\coroutine\curl;
8+
class exception extends \Swoole\Exception implements \Throwable,\Stringable {
99

1010
protected $message = '';
1111
protected $code = 0;
1212
protected $file;
1313
protected $line;
1414

15-
private function __clone() {}
1615
public function __construct($message = null, $code = null, $previous = null) {}
1716
public function __wakeup() {}
1817
public function getMessage() {}

php_docs_code/co-/co-curl-handle.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
/**
3+
* Co\curl\handle Document
4+
*
5+
* @author Leelmes <i@chengxuan.li>
6+
*/
7+
namespace co\curl;
8+
final class handle {
9+
10+
11+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
/**
3+
* Co\fastcgi\client\exception Document
4+
*
5+
* @author Leelmes <i@chengxuan.li>
6+
*/
7+
namespace co\fastcgi\client;
8+
class exception extends \Swoole\Exception implements \Throwable,\Stringable {
9+
10+
protected $message = '';
11+
protected $code = 0;
12+
protected $file;
13+
protected $line;
14+
15+
public function __construct($message = null, $code = null, $previous = null) {}
16+
public function __wakeup() {}
17+
public function getMessage() {}
18+
public function getCode() {}
19+
public function getFile() {}
20+
public function getLine() {}
21+
public function getTrace() {}
22+
public function getPrevious() {}
23+
public function getTraceAsString() {}
24+
public function __toString() {}
25+
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
/**
3+
* Co\fastcgi\client Document
4+
*
5+
* @author Leelmes <i@chengxuan.li>
6+
*/
7+
namespace co\fastcgi;
8+
class client {
9+
10+
protected $af;
11+
protected $host;
12+
protected $port;
13+
protected $ssl;
14+
protected $socket;
15+
16+
public function __construct($host, $port = null, $ssl = null) {}
17+
public function execute($request, $timeout = null) {}
18+
static public function parseUrl($url) {}
19+
static public function call($url, $path, $data = null, $timeout = null) {}
20+
protected function ioException($errno = null) {}
21+
}
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<?php
2+
/**
3+
* Co\fastcgi\proxy Document
4+
*
5+
* @author Leelmes <i@chengxuan.li>
6+
*/
7+
namespace co\fastcgi;
8+
class proxy {
9+
10+
protected $host;
11+
protected $port;
12+
protected $timeout = -1;
13+
protected $documentRoot;
14+
protected $https = false;
15+
protected $index = 'index.php';
16+
protected $params = array (
17+
);
18+
protected $staticFileFilter;
19+
20+
public function __construct($url, $documentRoot = null) {}
21+
public function withTimeout($timeout) {}
22+
public function withHttps($https) {}
23+
public function withIndex($index) {}
24+
public function getParam($name) {}
25+
public function withParam($name, $value) {}
26+
public function withoutParam($name) {}
27+
public function getParams() {}
28+
public function withParams($params) {}
29+
public function withAddedParams($params) {}
30+
public function withStaticFileFilter($filter) {}
31+
public function translateRequest($userRequest) {}
32+
public function translateResponse($response, $userResponse) {}
33+
public function pass($userRequest, $userResponse) {}
34+
public function staticFileFiltrate($request, $userResponse) {}
35+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?php
2+
/**
3+
* Co\http\client\exception Document
4+
*
5+
* @author Leelmes <i@chengxuan.li>
6+
*/
7+
namespace co\http\client;
8+
class exception extends \Swoole\Exception implements \Throwable,\Stringable {
9+
10+
protected $message = '';
11+
protected $code = 0;
12+
protected $file;
13+
protected $line;
14+
15+
public function __construct($message = null, $code = null, $previous = null) {}
16+
public function __wakeup() {}
17+
public function getMessage() {}
18+
public function getCode() {}
19+
public function getFile() {}
20+
public function getLine() {}
21+
public function getTrace() {}
22+
public function getPrevious() {}
23+
public function getTraceAsString() {}
24+
public function __toString() {}
25+
}

php_docs_code/co-/co-http-client.php

Lines changed: 22 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,41 +8,50 @@
88
class client {
99

1010
public $errCode = 0;
11-
public $sock = 0;
12-
public $type = 0;
13-
public $setting;
11+
public $errMsg = '';
1412
public $connected = false;
15-
public $statusCode = 0;
16-
public $host;
13+
public $host = '';
1714
public $port = 0;
15+
public $ssl = false;
16+
public $setting;
1817
public $requestMethod;
1918
public $requestHeaders;
2019
public $requestBody;
2120
public $uploadFiles;
2221
public $downloadFile;
22+
public $downloadOffset = 0;
23+
public $statusCode = 0;
2324
public $headers;
2425
public $set_cookie_headers;
2526
public $cookies;
26-
public $body;
27+
public $body = '';
2728

2829
public function __construct($host, $port = null, $ssl = null) {}
2930
public function __destruct() {}
3031
public function set($settings) {}
32+
public function getDefer() {}
33+
public function setDefer($defer = null) {}
3134
public function setMethod($method) {}
3235
public function setHeaders($headers) {}
36+
public function setBasicAuth($username, $password) {}
3337
public function setCookies($cookies) {}
3438
public function setData($data) {}
39+
public function addFile($path, $name, $type = null, $filename = null, $offset = null, $length = null) {}
40+
public function addData($path, $name, $type = null, $filename = null) {}
3541
public function execute($path) {}
42+
public function getpeername() {}
43+
public function getsockname() {}
3644
public function get($path) {}
3745
public function post($path, $data) {}
3846
public function download($path, $file, $offset = null) {}
47+
public function getBody() {}
48+
public function getHeaders() {}
49+
public function getCookies() {}
50+
public function getStatusCode() {}
51+
public function getHeaderOut() {}
52+
public function getPeerCert() {}
3953
public function upgrade($path) {}
40-
public function addFile($path, $name, $type = null, $filename = null, $offset = null, $length = null) {}
41-
public function addData($path, $name, $type = null, $filename = null) {}
42-
public function isConnected() {}
43-
public function close() {}
44-
public function setDefer($defer = null) {}
45-
public function getDefer() {}
54+
public function push($data, $opcode = null, $flags = null) {}
4655
public function recv($timeout = null) {}
47-
public function push($data, $opcode = null, $finish = null) {}
56+
public function close() {}
4857
}

php_docs_code/co-/co-http-request.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

php_docs_code/co-/co-http-response.php

Lines changed: 0 additions & 28 deletions
This file was deleted.

0 commit comments

Comments
 (0)