Skip to content

Commit

Permalink
updates for Swoole 4.5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
deminy committed Sep 16, 2020
1 parent 92428c7 commit 3382a18
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 6 deletions.
15 changes: 11 additions & 4 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.3');
define('SWOOLE_VERSION_ID', 40503);
define('SWOOLE_VERSION', '4.5.4');
define('SWOOLE_VERSION_ID', 40504);
define('SWOOLE_MAJOR_VERSION', 4);
define('SWOOLE_MINOR_VERSION', 5);
define('SWOOLE_RELEASE_VERSION', 3);
define('SWOOLE_RELEASE_VERSION', 4);
define('SWOOLE_EXTRA_VERSION', '');
define('SWOOLE_DEBUG', '');
define('SWOOLE_HAVE_COMPRESSION', '1');
Expand Down Expand Up @@ -54,6 +54,12 @@
define('SWOOLE_TLS_METHOD', 0);
define('SWOOLE_TLS_SERVER_METHOD', 4);
define('SWOOLE_TLS_CLIENT_METHOD', 5);
define('SWOOLE_SSL_TLSv1', 8);
define('SWOOLE_SSL_TLSv1_1', 16);
define('SWOOLE_SSL_TLSv1_2', 32);
define('SWOOLE_SSL_TLSv1_3', 64);
define('SWOOLE_SSL_DTLS', 128);
define('SWOOLE_SSL_SSLv2', 2);
define('SWOOLE_EVENT_READ', 512);
define('SWOOLE_EVENT_WRITE', 1024);
define('SWOOLE_STRERROR_SYSTEM', 0);
Expand All @@ -77,6 +83,7 @@
define('SWOOLE_ERROR_DNSLOOKUP_RESOLVE_TIMEOUT', 705);
define('SWOOLE_ERROR_BAD_IPV6_ADDRESS', 706);
define('SWOOLE_ERROR_UNREGISTERED_SIGNAL', 707);
define('SWOOLE_ERROR_EVENT_SOCKET_REMOVED', 800);
define('SWOOLE_ERROR_SESSION_CLOSED_BY_SERVER', 1001);
define('SWOOLE_ERROR_SESSION_CLOSED_BY_CLIENT', 1002);
define('SWOOLE_ERROR_SESSION_CLOSING', 1003);
Expand Down Expand Up @@ -247,7 +254,7 @@
define('SWOOLE_HOOK_PROC', 1024);
define('SWOOLE_HOOK_CURL', 268435456);
define('SWOOLE_HOOK_BLOCKING_FUNCTION', 1073741824);
define('SWOOLE_HOOK_ALL', 1879048191);
define('SWOOLE_HOOK_ALL', 2147483647);
define('SOCKET_ECANCELED', 125);
define('SWOOLE_HTTP_CLIENT_ESTATUS_CONNECT_FAILED', -1);
define('SWOOLE_HTTP_CLIENT_ESTATUS_REQUEST_TIMEOUT', -2);
Expand Down
16 changes: 16 additions & 0 deletions output/swoole_library/src/core/ArrayObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,22 @@ public function last()
return $this->get($key);
}

/**
* @return null|int|string
*/
public function firstKey()
{
return array_key_first($this->array);
}

/**
* @return null|int|string
*/
public function lastKey()
{
return array_key_last($this->array);
}

/**
* @return mixed
*/
Expand Down
6 changes: 4 additions & 2 deletions output/swoole_library/src/core/Constant.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,6 @@ class Constant

public const OPTION_ENABLE_COROUTINE = 'enable_coroutine';

public const OPTION_SSL_METHOD = 'ssl_method';

public const OPTION_SSL_PROTOCOLS = 'ssl_protocols';

public const OPTION_SSL_COMPRESS = 'ssl_compress';
Expand Down Expand Up @@ -366,6 +364,10 @@ class Constant

public const OPTION_OPEN_WEBSOCKET_CLOSE_FRAME = 'open_websocket_close_frame';

public const OPTION_OPEN_WEBSOCKET_PING_FRAME = 'open_websocket_ping_frame';

public const OPTION_OPEN_WEBSOCKET_PONG_FRAME = 'open_websocket_pong_frame';

public const OPTION_OPEN_HTTP2_PROTOCOL = 'open_http2_protocol';

public const OPTION_OPEN_REDIS_PROTOCOL = 'open_redis_protocol';
Expand Down

0 comments on commit 3382a18

Please sign in to comment.