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() {}
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+
}

0 commit comments

Comments
 (0)