Skip to content

Commit

Permalink
update php code to new version
Browse files Browse the repository at this point in the history
  • Loading branch information
flyhope committed Sep 3, 2021
1 parent dab2537 commit b0fa99f
Show file tree
Hide file tree
Showing 140 changed files with 1,572 additions and 702 deletions.
4 changes: 3 additions & 1 deletion library/model/manual.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ public static function process($ext_name, callable $callback) {

// SVN签出
$cmd = "svn export 'http://svn.php.net/repository/phpdoc/zh/trunk/reference/{$ext_name}' {$docs_xml_dir} --force 2>&1";
echo $cmd . "\n";
exec($cmd, $output, $cmd_code);

// 中文签出失败,尝试英文的
if ($cmd_code) {
$cmd = "svn export 'http://svn.php.net/repository/phpdoc/en/trunk/reference/{$ext_name}' {$docs_xml_dir} --force";
echo $cmd . "\n";
exec($cmd, $output, $cmd_code);
}

Expand Down
26 changes: 13 additions & 13 deletions php_docs_code/co-/co-context.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,29 @@ class context extends \ArrayObject implements \Countable,\Serializable,\ArrayAcc
const STD_PROP_LIST = 1;
const ARRAY_AS_PROPS = 2;

public function __construct($array = null, $flags = null, $iteratorClass = null) {}
public function offsetExists($key) {}
public function offsetGet($key) {}
public function offsetSet($key, $value) {}
public function offsetUnset($key) {}
public function __construct($input = null, $flags = null, $iterator_class = null) {}
public function offsetExists($index) {}
public function offsetGet($index) {}
public function offsetSet($index, $newval) {}
public function offsetUnset($index) {}
public function append($value) {}
public function getArrayCopy() {}
public function count() {}
public function getFlags() {}
public function setFlags($flags) {}
public function asort($flags = null) {}
public function ksort($flags = null) {}
public function uasort($callback) {}
public function uksort($callback) {}
public function asort() {}
public function ksort() {}
public function uasort($cmp_function) {}
public function uksort($cmp_function) {}
public function natsort() {}
public function natcasesort() {}
public function unserialize($data) {}
public function unserialize($serialized) {}
public function serialize() {}
public function __unserialize($serialized) {}
public function __serialize() {}
public function __unserialize($data) {}
public function __debugInfo() {}
public function getIterator() {}
public function exchangeArray($array) {}
public function exchangeArray($input) {}
public function setIteratorClass($iteratorClass) {}
public function getIteratorClass() {}
public function __debugInfo() {}
}
3 changes: 2 additions & 1 deletion php_docs_code/co-/co-http-client-exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
* @author Leelmes <[email protected]>
*/
namespace co\http\client;
class exception extends \Swoole\Exception implements \Throwable,\Stringable {
class exception extends \Swoole\Exception implements \Throwable {

protected $message = '';
protected $code = 0;
protected $file;
protected $line;

private function __clone() {}
public function __construct($message = null, $code = null, $previous = null) {}
public function __wakeup() {}
public function getMessage() {}
Expand Down
3 changes: 0 additions & 3 deletions php_docs_code/co-/co-http-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ public function setData($data) {}
public function addFile($path, $name, $type = null, $filename = null, $offset = null, $length = null) {}
public function addData($path, $name, $type = null, $filename = null) {}
public function execute($path) {}
public function getpeername() {}
public function getsockname() {}
public function get($path) {}
public function post($path, $data) {}
public function download($path, $file, $offset = null) {}
Expand All @@ -49,7 +47,6 @@ public function getHeaders() {}
public function getCookies() {}
public function getStatusCode() {}
public function getHeaderOut() {}
public function getPeerCert() {}
public function upgrade($path) {}
public function push($data, $opcode = null, $flags = null) {}
public function recv($timeout = null) {}
Expand Down
2 changes: 1 addition & 1 deletion php_docs_code/co-/co-http-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct($host, $port = null, $ssl = null, $reuse_port = null
public function __destruct() {}
public function set($settings) {}
public function handle($pattern, $callback) {}
private function onAccept() {}
public function onAccept() {}
public function start() {}
public function shutdown() {}
}
24 changes: 12 additions & 12 deletions php_docs_code/co-/co-iterator.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,30 +11,30 @@ class iterator extends \ArrayIterator implements \Countable,\Serializable,\Seeka
const ARRAY_AS_PROPS = 2;

public function __construct($array = null, $flags = null) {}
public function offsetExists($key) {}
public function offsetGet($key) {}
public function offsetSet($key, $value) {}
public function offsetUnset($key) {}
public function offsetExists($index) {}
public function offsetGet($index) {}
public function offsetSet($index, $newval) {}
public function offsetUnset($index) {}
public function append($value) {}
public function getArrayCopy() {}
public function count() {}
public function getFlags() {}
public function setFlags($flags) {}
public function asort($flags = null) {}
public function ksort($flags = null) {}
public function uasort($callback) {}
public function uksort($callback) {}
public function asort() {}
public function ksort() {}
public function uasort($cmp_function) {}
public function uksort($cmp_function) {}
public function natsort() {}
public function natcasesort() {}
public function unserialize($data) {}
public function unserialize($serialized) {}
public function serialize() {}
public function __unserialize($serialized) {}
public function __serialize() {}
public function __unserialize($data) {}
public function __debugInfo() {}
public function rewind() {}
public function current() {}
public function key() {}
public function next() {}
public function valid() {}
public function seek($offset) {}
public function __debugInfo() {}
public function seek($position) {}
}
3 changes: 2 additions & 1 deletion php_docs_code/co-/co-mysql-exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
* @author Leelmes <[email protected]>
*/
namespace co\mysql;
class exception extends \Swoole\Exception implements \Throwable,\Stringable {
class exception extends \Swoole\Exception implements \Throwable {

protected $message = '';
protected $code = 0;
protected $file;
protected $line;

private function __clone() {}
public function __construct($message = null, $code = null, $previous = null) {}
public function __wakeup() {}
public function getMessage() {}
Expand Down
1 change: 0 additions & 1 deletion php_docs_code/co-/co-mysql.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,5 @@ public function recv() {}
public function begin($timeout = null) {}
public function commit($timeout = null) {}
public function rollback($timeout = null) {}
public function escape($string, $flags = null) {}
public function close() {}
}
1 change: 0 additions & 1 deletion php_docs_code/co-/co-scheduler.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,5 @@ final class scheduler {
public function add($func, $params = null) {}
public function parallel($n, $func = null, $params = null) {}
public function set($settings) {}
public function getOptions() {}
public function start() {}
}
3 changes: 2 additions & 1 deletion php_docs_code/co-/co-socket-exception.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
* @author Leelmes <[email protected]>
*/
namespace co\socket;
class exception extends \Swoole\Exception implements \Throwable,\Stringable {
class exception extends \Swoole\Exception implements \Throwable {

protected $message = '';
protected $code = 0;
protected $file;
protected $line;

private function __clone() {}
public function __construct($message = null, $code = null, $previous = null) {}
public function __wakeup() {}
public function getMessage() {}
Expand Down
14 changes: 1 addition & 13 deletions php_docs_code/co-/co-socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
class socket {

public $fd = -1;
public $domain = 0;
public $type = 0;
public $protocol = 0;
public $errCode = 0;
public $errMsg = '';

Expand All @@ -19,26 +16,17 @@ public function bind($address, $port = null) {}
public function listen($backlog = null) {}
public function accept($timeout = null) {}
public function connect($host, $port = null, $timeout = null) {}
public function checkLiveness() {}
public function peek($length = null) {}
public function recv($length = null, $timeout = null) {}
public function recvAll($length = null, $timeout = null) {}
public function recvLine($length = null, $timeout = null) {}
public function recvWithBuffer($length = null, $timeout = null) {}
public function recvPacket($timeout = null) {}
public function send($data, $timeout = null) {}
public function readVector($io_vector, $timeout = null) {}
public function readVectorAll($io_vector, $timeout = null) {}
public function writeVector($io_vector, $timeout = null) {}
public function writeVectorAll($io_vector, $timeout = null) {}
public function sendFile($filename, $offset = null, $length = null) {}
public function recvAll($length = null, $timeout = null) {}
public function sendAll($data, $timeout = null) {}
public function recvfrom(& $peername, $timeout = null) {}
public function sendto($addr, $port, $data) {}
public function getOption($level, $opt_name) {}
public function setProtocol($settings) {}
public function setOption($level, $opt_name, $opt_value) {}
public function sslHandshake() {}
public function shutdown($how = null) {}
public function cancel($event = null) {}
public function close() {}
Expand Down
12 changes: 4 additions & 8 deletions php_docs_code/co-/co-system.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,11 @@ static public function gethostbyname($domain_name, $family = null, $timeout = nu
static public function dnsLookup($domain_name, $timeout = null) {}
static public function exec($command, $get_error_stream = null) {}
static public function sleep($seconds) {}
static public function getaddrinfo($hostname, $family = null, $socktype = null, $protocol = null, $service = null, $timeout = null) {}
static public function statvfs($path) {}
static public function readFile($filename) {}
static public function writeFile($filename, $data, $flags = null) {}
static public function wait($timeout = null) {}
static public function waitPid($pid, $timeout = null) {}
static public function waitSignal($signo, $timeout = null) {}
static public function waitEvent($fd, $events = null, $timeout = null) {}
static public function fread($handle, $length = null) {}
static public function fwrite($handle, $string, $length = null) {}
static public function fgets($handle) {}
static public function getaddrinfo($hostname, $family = null, $socktype = null, $protocol = null, $service = null, $timeout = null) {}
static public function readFile($filename) {}
static public function writeFile($filename, $data, $flags = null) {}
static public function statvfs($path) {}
}
2 changes: 1 addition & 1 deletion php_docs_code/co-/co-waitgroup.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ class waitgroup {
protected $count = 0;
protected $waiting = false;

public function __construct($delta = null) {}
public function __construct() {}
public function add($delta = null) {}
public function done() {}
public function wait($timeout = null) {}
Expand Down
15 changes: 4 additions & 11 deletions php_docs_code/co.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class co {
static public function create($func, $params = null) {}
static public function defer($callback) {}
static public function set($options) {}
static public function getOptions() {}
static public function exists($cid) {}
static public function yield() {}
static public function suspend() {}
Expand All @@ -21,8 +20,6 @@ static public function getuid() {}
static public function getPcid($cid = null) {}
static public function getContext($cid = null) {}
static public function getBackTrace($cid = null, $options = null, $limit = null) {}
static public function printBackTrace($cid = null, $options = null, $limit = null) {}
static public function getElapsed($cid = null) {}
static public function list() {}
static public function listCoroutines() {}
static public function enableScheduler() {}
Expand All @@ -31,15 +28,11 @@ static public function gethostbyname($domain_name, $family = null, $timeout = nu
static public function dnsLookup($domain_name, $timeout = null) {}
static public function exec($command, $get_error_stream = null) {}
static public function sleep($seconds) {}
static public function getaddrinfo($hostname, $family = null, $socktype = null, $protocol = null, $service = null, $timeout = null) {}
static public function statvfs($path) {}
static public function readFile($filename) {}
static public function writeFile($filename, $data, $flags = null) {}
static public function wait($timeout = null) {}
static public function waitPid($pid, $timeout = null) {}
static public function waitSignal($signo, $timeout = null) {}
static public function waitEvent($fd, $events = null, $timeout = null) {}
static public function fread($handle, $length = null) {}
static public function fgets($handle) {}
static public function fwrite($handle, $string, $length = null) {}
static public function readFile($filename) {}
static public function writeFile($filename, $data, $flags = null) {}
static public function getaddrinfo($hostname, $family = null, $socktype = null, $protocol = null, $service = null, $timeout = null) {}
static public function statvfs($path) {}
}
30 changes: 5 additions & 25 deletions php_docs_code/swoole.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,29 +11,22 @@ function swoole_async_dns_lookup_coro($domain_name, $timeout = null) {}
function swoole_async_set($settings) {}
function swoole_coroutine_create($func, $params = null) {}
function swoole_coroutine_defer($callback) {}
function swoole_coroutine_socketpair($domain, $type, $protocol) {}
function swoole_test_kernel_coroutine($count = null, $sleep_time = null) {}
function swoole_client_select(& $read_array, & $write_array, & $error_array, $timeout = null) {}
function swoole_select(& $read_array, & $write_array, & $error_array, $timeout = null) {}
function swoole_set_process_name($process_name) {}
function swoole_get_local_ip() {}
function swoole_get_local_mac() {}
function swoole_strerror($errno, $error_type = null) {}
function swoole_errno() {}
function swoole_clear_error() {}
function swoole_error_log($level, $msg) {}
function swoole_hashcode($data, $type = null) {}
function swoole_mime_type_add($suffix, $mime_type) {}
function swoole_mime_type_set($suffix, $mime_type) {}
function swoole_mime_type_delete($suffix) {}
function swoole_mime_type_get($filename) {}
function swoole_get_mime_type($filename) {}
function swoole_mime_type_exists($filename) {}
function swoole_mime_type_list() {}
function swoole_clear_dns_cache() {}
function swoole_substr_unserialize($str, $offset, $length = null, $options = null) {}
function swoole_substr_json_decode($json, $offset, $length = null, $associative = null, $depth = null, $flags = null) {}
function swoole_internal_call_user_shutdown_begin() {}
function swoole_async_read($filename, $callback, $chunk_size = null, $offset = null) {}
function swoole_async_write($filename, $content, $offset = null, $callback = null) {}
function swoole_async_readfile($filename, $callback) {}
function swoole_async_writefile($filename, $content, $callback = null, $flags = null) {}
function swoole_async_dns_lookup($hostname, $callback) {}
function swoole_event_add($fd, $read_callback, $write_callback = null, $events = null) {}
function swoole_event_del($fd) {}
function swoole_event_set($fd, $read_callback = null, $write_callback = null, $events = null) {}
Expand All @@ -53,16 +46,3 @@ function swoole_timer_stats() {}
function swoole_timer_list() {}
function swoole_timer_clear($timer_id) {}
function swoole_timer_clear_all() {}
function swoole_native_curl_close($handle) {}
function swoole_native_curl_copy_handle($handle) {}
function swoole_native_curl_errno($handle) {}
function swoole_native_curl_error($handle) {}
function swoole_native_curl_exec($handle) {}
function swoole_native_curl_getinfo($handle, $option = null) {}
function swoole_native_curl_init($url = null) {}
function swoole_native_curl_setopt($handle, $option, $value) {}
function swoole_native_curl_setopt_array($handle, $options) {}
function swoole_native_curl_reset($handle) {}
function swoole_native_curl_escape($handle, $string) {}
function swoole_native_curl_unescape($handle, $string) {}
function swoole_native_curl_pause($handle, $flags) {}
15 changes: 4 additions & 11 deletions php_docs_code/swoole/Swoole-ArrayObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class ArrayObject implements \ArrayAccess,\Serializable,\Countable,\Iterator,\Tr

public function __construct($array = null) {}
public function __toArray() {}
public function toArray() {}
public function isEmpty() {}
public function count() {}
public function current() {}
Expand All @@ -20,10 +19,6 @@ public function valid() {}
public function rewind() {}
public function next() {}
public function get($key) {}
public function last() {}
public function firstKey() {}
public function lastKey() {}
public function first() {}
public function set($key, $value) {}
public function delete($key) {}
public function remove($value, $strict = null, $loop = null) {}
Expand All @@ -43,26 +38,24 @@ public function unserialize($string) {}
public function sum() {}
public function product() {}
public function push($value) {}
public function pushFront($value) {}
public function append($values = null) {}
public function pushBack($value) {}
public function insert($offset, $value) {}
public function pop() {}
public function popFront() {}
public function popBack() {}
public function slice($offset, $length = null, $preserve_keys = null) {}
public function randomGet() {}
public function each($fn) {}
public function map($fn, $args = null) {}
public function reduce($fn, $initial = null) {}
public function keys($args = null) {}
public function map($fn) {}
public function reduce($fn) {}
public function keys($search_value = null, $strict = null) {}
public function values() {}
public function column($column_key, $index = null) {}
public function unique($sort_flags = null) {}
public function reverse($preserve_keys = null) {}
public function chunk($size, $preserve_keys = null) {}
public function flip() {}
public function filter($fn, $flag = null) {}
public function multiSort($sort_order = null, $sort_flags = null) {}
public function asort($sort_flags = null) {}
public function arsort($sort_flags = null) {}
public function krsort($sort_flags = null) {}
Expand Down
Loading

0 comments on commit b0fa99f

Please sign in to comment.