Skip to content

Commit

Permalink
updates for Swoole 4.5.0
Browse files Browse the repository at this point in the history
Signed-off-by: Demin Yin <[email protected]>
  • Loading branch information
deminy committed Apr 26, 2020
1 parent 61bfb54 commit bfc9e78
Show file tree
Hide file tree
Showing 13 changed files with 218 additions and 101 deletions.
1 change: 0 additions & 1 deletion output/swoole/aliases.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class_alias(Swoole\Coroutine\System::class, Co\System::class);

class_alias(Swoole\Atomic::class, swoole_atomic::class);
class_alias(Swoole\Atomic\Long::class, swoole_atomic_long::class);
class_alias(Swoole\Buffer::class, swoole_buffer::class);
class_alias(Swoole\Client::class, swoole_client::class);
class_alias(Swoole\Connection\Iterator::class, swoole_connection_iterator::class);
class_alias(Swoole\Coroutine::class, co::class);
Expand Down
43 changes: 24 additions & 19 deletions output/swoole/constants.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

define('SWOOLE_VERSION', '4.4.18');
define('SWOOLE_VERSION_ID', 40418);
define('SWOOLE_VERSION', '4.5.0');
define('SWOOLE_VERSION_ID', 40500);
define('SWOOLE_MAJOR_VERSION', 4);
define('SWOOLE_MINOR_VERSION', 4);
define('SWOOLE_RELEASE_VERSION', 18);
define('SWOOLE_MINOR_VERSION', 5);
define('SWOOLE_RELEASE_VERSION', 0);
define('SWOOLE_EXTRA_VERSION', '');
define('SWOOLE_DEBUG', '');
define('SWOOLE_HAVE_COMPRESSION', '1');
Expand Down Expand Up @@ -37,9 +37,6 @@
define('SWOOLE_SSLv3_METHOD', 1);
define('SWOOLE_SSLv3_SERVER_METHOD', 2);
define('SWOOLE_SSLv3_CLIENT_METHOD', 3);
define('SWOOLE_SSLv23_METHOD', 0);
define('SWOOLE_SSLv23_SERVER_METHOD', 4);
define('SWOOLE_SSLv23_CLIENT_METHOD', 5);
define('SWOOLE_TLSv1_METHOD', 6);
define('SWOOLE_TLSv1_SERVER_METHOD', 7);
define('SWOOLE_TLSv1_CLIENT_METHOD', 8);
Expand All @@ -49,9 +46,14 @@
define('SWOOLE_TLSv1_2_METHOD', 12);
define('SWOOLE_TLSv1_2_SERVER_METHOD', 13);
define('SWOOLE_TLSv1_2_CLIENT_METHOD', 14);
define('SWOOLE_DTLSv1_METHOD', 15);
define('SWOOLE_DTLSv1_SERVER_METHOD', 16);
define('SWOOLE_DTLSv1_CLIENT_METHOD', 17);
define('SWOOLE_DTLS_SERVER_METHOD', 16);
define('SWOOLE_DTLS_CLIENT_METHOD', 15);
define('SWOOLE_SSLv23_METHOD', 0);
define('SWOOLE_SSLv23_SERVER_METHOD', 4);
define('SWOOLE_SSLv23_CLIENT_METHOD', 5);
define('SWOOLE_TLS_METHOD', 0);
define('SWOOLE_TLS_SERVER_METHOD', 4);
define('SWOOLE_TLS_CLIENT_METHOD', 5);
define('SWOOLE_EVENT_READ', 512);
define('SWOOLE_EVENT_WRITE', 1024);
define('SWOOLE_STRERROR_SYSTEM', 0);
Expand Down Expand Up @@ -81,15 +83,16 @@
define('SWOOLE_ERROR_SESSION_NOT_EXIST', 1005);
define('SWOOLE_ERROR_SESSION_INVALID_ID', 1006);
define('SWOOLE_ERROR_SESSION_DISCARD_TIMEOUT_DATA', 1007);
define('SWOOLE_ERROR_OUTPUT_BUFFER_OVERFLOW', 1008);
define('SWOOLE_ERROR_OUTPUT_SEND_YIELD', 1009);
define('SWOOLE_ERROR_SSL_NOT_READY', 1010);
define('SWOOLE_ERROR_SSL_CANNOT_USE_SENFILE', 1011);
define('SWOOLE_ERROR_SSL_EMPTY_PEER_CERTIFICATE', 1012);
define('SWOOLE_ERROR_SSL_VEFIRY_FAILED', 1013);
define('SWOOLE_ERROR_SSL_BAD_CLIENT', 1014);
define('SWOOLE_ERROR_SSL_BAD_PROTOCOL', 1015);
define('SWOOLE_ERROR_SSL_RESET', 1016);
define('SWOOLE_ERROR_SESSION_DISCARD_DATA', 1008);
define('SWOOLE_ERROR_OUTPUT_BUFFER_OVERFLOW', 1009);
define('SWOOLE_ERROR_OUTPUT_SEND_YIELD', 1010);
define('SWOOLE_ERROR_SSL_NOT_READY', 1011);
define('SWOOLE_ERROR_SSL_CANNOT_USE_SENFILE', 1012);
define('SWOOLE_ERROR_SSL_EMPTY_PEER_CERTIFICATE', 1013);
define('SWOOLE_ERROR_SSL_VERIFY_FAILED', 1014);
define('SWOOLE_ERROR_SSL_BAD_CLIENT', 1015);
define('SWOOLE_ERROR_SSL_BAD_PROTOCOL', 1016);
define('SWOOLE_ERROR_SSL_RESET', 1017);
define('SWOOLE_ERROR_PACKAGE_LENGTH_TOO_LARGE', 1201);
define('SWOOLE_ERROR_PACKAGE_LENGTH_NOT_FOUND', 1202);
define('SWOOLE_ERROR_DATA_LENGTH_TOO_LARGE', 1203);
Expand Down Expand Up @@ -309,6 +312,8 @@
define('SWOOLE_TASK_COROUTINE', 32);
define('SWOOLE_TASK_PEEK', 64);
define('SWOOLE_TASK_NOREPLY', 128);
define('SWOOLE_WORKER_BUSY', 1);
define('SWOOLE_WORKER_IDLE', 2);
define('SWOOLE_WEBSOCKET_STATUS_CONNECTION', 1);
define('SWOOLE_WEBSOCKET_STATUS_HANDSHAKE', 2);
define('SWOOLE_WEBSOCKET_STATUS_ACTIVE', 3);
Expand Down
32 changes: 32 additions & 0 deletions output/swoole/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,44 @@ function swoole_errno(){}
*/
function swoole_hashcode($data, $type = null){}

/**
* @param $suffix[required]
* @param $mime_type[required]
* @return mixed
*/
function swoole_mime_type_add($suffix, $mime_type){}

/**
* @param $suffix[required]
* @param $mime_type[required]
* @return mixed
*/
function swoole_mime_type_set($suffix, $mime_type){}

/**
* @param $suffix[required]
* @return mixed
*/
function swoole_mime_type_delete($suffix){}

/**
* @param $filename[required]
* @return mixed
*/
function swoole_mime_type_get($filename){}

/**
* @param $filename[required]
* @return mixed
*/
function swoole_get_mime_type($filename){}

/**
* @param $filename[required]
* @return mixed
*/
function swoole_mime_type_exists($filename){}

/**
* @return mixed
*/
Expand Down
77 changes: 0 additions & 77 deletions output/swoole/namespace/Buffer.php

This file was deleted.

35 changes: 35 additions & 0 deletions output/swoole/namespace/Coroutine.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,13 @@ public static function getBackTrace($cid = null, $options = null, $limit = null)
{
}

/**
* @return mixed
*/
public static function getElapsed($cid = null)
{
}

/**
* @return mixed
*/
Expand Down Expand Up @@ -201,5 +208,33 @@ public static function statvfs($path)
{
}

/**
* @return mixed
*/
public static function wait($timeout = null)
{
}

/**
* @return mixed
*/
public static function waitPid($pid, $timeout = null)
{
}

/**
* @return mixed
*/
public static function waitSignal($signo, $timeout = null)
{
}

/**
* @return mixed
*/
public static function waitEvent($fd, $events = null, $timeout = null)
{
}


}
21 changes: 21 additions & 0 deletions output/swoole/namespace/Coroutine/Http/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,20 @@ public function execute($path)
{
}

/**
* @return mixed
*/
public function getpeername()
{
}

/**
* @return mixed
*/
public function getsockname()
{
}

/**
* @return mixed
*/
Expand Down Expand Up @@ -182,6 +196,13 @@ public function getHeaderOut()
{
}

/**
* @return mixed
*/
public function getPeerCert()
{
}

/**
* @return mixed
*/
Expand Down
7 changes: 7 additions & 0 deletions output/swoole/namespace/Coroutine/Http2/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ public function recv($timeout = null)
{
}

/**
* @return mixed
*/
public function read($timeout = null)
{
}

/**
* @return mixed
*/
Expand Down
21 changes: 21 additions & 0 deletions output/swoole/namespace/Coroutine/Socket.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,20 @@ public function connect($host, $port = null, $timeout = null)
{
}

/**
* @return mixed
*/
public function checkLiveness()
{
}

/**
* @return mixed
*/
public function peek($length = null)
{
}

/**
* @return mixed
*/
Expand Down Expand Up @@ -120,6 +134,13 @@ public function setOption($level, $opt_name, $opt_value)
{
}

/**
* @return mixed
*/
public function sslHandshake()
{
}

/**
* @return mixed
*/
Expand Down
28 changes: 28 additions & 0 deletions output/swoole/namespace/Coroutine/System.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,33 @@ public static function statvfs($path)
{
}

/**
* @return mixed
*/
public static function wait($timeout = null)
{
}

/**
* @return mixed
*/
public static function waitPid($pid, $timeout = null)
{
}

/**
* @return mixed
*/
public static function waitSignal($signo, $timeout = null)
{
}

/**
* @return mixed
*/
public static function waitEvent($fd, $events = null, $timeout = null)
{
}


}
7 changes: 7 additions & 0 deletions output/swoole/namespace/Http/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ public function rawContent()
{
}

/**
* @return mixed
*/
public function getContent()
{
}

/**
* @return mixed
*/
Expand Down
2 changes: 1 addition & 1 deletion output/swoole/namespace/Http/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ public function detach()
/**
* @return mixed
*/
public static function create($fd)
public static function create($server, $fd = null)
{
}

Expand Down
Loading

0 comments on commit bfc9e78

Please sign in to comment.