Skip to content

Commit

Permalink
updates for Swoole 4.5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
deminy committed Oct 27, 2020
1 parent aefd9d1 commit ab23c2c
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 10 deletions.
17 changes: 9 additions & 8 deletions output/swoole/constants.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php

define('SWOOLE_VERSION', '4.5.5');
define('SWOOLE_VERSION_ID', 40505);
define('SWOOLE_VERSION', '4.5.6');
define('SWOOLE_VERSION_ID', 40506);
define('SWOOLE_MAJOR_VERSION', 4);
define('SWOOLE_MINOR_VERSION', 5);
define('SWOOLE_RELEASE_VERSION', 5);
define('SWOOLE_RELEASE_VERSION', 6);
define('SWOOLE_EXTRA_VERSION', '');
define('SWOOLE_DEBUG', '');
define('SWOOLE_HAVE_COMPRESSION', '1');
Expand Down Expand Up @@ -116,16 +116,17 @@
define('SWOOLE_ERROR_AIO_CANCELED', 4002);
define('SWOOLE_ERROR_AIO_TIMEOUT', 4003);
define('SWOOLE_ERROR_CLIENT_NO_CONNECTION', 5001);
define('SWOOLE_ERROR_SOCKET_CLOSED', 5002);
define('SWOOLE_ERROR_SOCKET_CLOSED', 6001);
define('SWOOLE_ERROR_SOCKET_POLL_TIMEOUT', 6002);
define('SWOOLE_ERROR_SOCKS5_UNSUPPORT_VERSION', 7001);
define('SWOOLE_ERROR_SOCKS5_UNSUPPORT_METHOD', 7002);
define('SWOOLE_ERROR_SOCKS5_AUTH_FAILED', 7003);
define('SWOOLE_ERROR_SOCKS5_SERVER_ERROR', 7004);
define('SWOOLE_ERROR_SOCKS5_HANDSHAKE_FAILED', 7005);
define('SWOOLE_ERROR_HTTP_PROXY_HANDSHAKE_ERROR', 8001);
define('SWOOLE_ERROR_HTTP_INVALID_PROTOCOL', 8002);
define('SWOOLE_ERROR_HTTP_PROXY_HANDSHAKE_FAILED', 8003);
define('SWOOLE_ERROR_HTTP_PROXY_BAD_RESPONSE', 8004);
define('SWOOLE_ERROR_HTTP_PROXY_HANDSHAKE_ERROR', 7101);
define('SWOOLE_ERROR_HTTP_INVALID_PROTOCOL', 7102);
define('SWOOLE_ERROR_HTTP_PROXY_HANDSHAKE_FAILED', 7103);
define('SWOOLE_ERROR_HTTP_PROXY_BAD_RESPONSE', 7104);
define('SWOOLE_ERROR_WEBSOCKET_BAD_CLIENT', 8501);
define('SWOOLE_ERROR_WEBSOCKET_BAD_OPCODE', 8502);
define('SWOOLE_ERROR_WEBSOCKET_UNCONNECTED', 8503);
Expand Down
20 changes: 20 additions & 0 deletions output/swoole/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,26 @@ function swoole_mime_type_list(){}
*/
function swoole_clear_dns_cache(){}

/**
* @param $str[required]
* @param $offset[required]
* @param $length[optional]
* @param $options[optional]
* @return mixed
*/
function swoole_substr_unserialize($str, $offset, $length = null, $options = null){}

/**
* @param $json[required]
* @param $offset[required]
* @param $length[optional]
* @param $associative[optional]
* @param $depth[optional]
* @param $flags[optional]
* @return mixed
*/
function swoole_substr_json_decode($json, $offset, $length = null, $associative = null, $depth = null, $flags = null){}

/**
* @return mixed
*/
Expand Down
2 changes: 1 addition & 1 deletion output/swoole/namespace/Coroutine/Http/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function handle($pattern, callable $callback)
/**
* @return mixed
*/
public function onAccept()
private function onAccept()
{
}

Expand Down
2 changes: 1 addition & 1 deletion src/StubGenerators/SwooleLib.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @package Swoole\IDEHelper\StubGenerators
* @see https://github.com/swoole/swoole-src/tree/master/library
* @see https://github.com/swoole/swoole-src/blob/v4.4.13/php_swoole_library.h#L5
* @see https://github.com/swoole/swoole-src/blob/v4.5.6/ext-src/php_swoole_library.h#L5
*/
class SwooleLib extends AbstractStubGenerator
{
Expand Down

0 comments on commit ab23c2c

Please sign in to comment.