Skip to content

Commit

Permalink
Update version for Swoole 4.4.13RC2
Browse files Browse the repository at this point in the history
  • Loading branch information
twose committed Dec 11, 2019
1 parent 4c9ced5 commit cbef092
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 27 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PROJECT(libswoole)

ENABLE_LANGUAGE(ASM)
SET(SWOOLE_VERSION 4.4.13RC1)
SET(SWOOLE_VERSION 4.4.13RC2)
SET(SWOOLE_CLFLAGS pthread rt dl ssl crypt crypto)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall")
Expand Down
4 changes: 2 additions & 2 deletions include/swoole.h
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ int clock_gettime(clock_id_t which_clock, struct timespec *t);
#define SWOOLE_MAJOR_VERSION 4
#define SWOOLE_MINOR_VERSION 4
#define SWOOLE_RELEASE_VERSION 13
#define SWOOLE_EXTRA_VERSION "RC1"
#define SWOOLE_VERSION "4.4.13RC1"
#define SWOOLE_EXTRA_VERSION "RC2"
#define SWOOLE_VERSION "4.4.13RC2"
#define SWOOLE_VERSION_ID 40413
#define SWOOLE_BUG_REPORT \
"A bug occurred in Swoole-v" SWOOLE_VERSION ", please report it.\n"\
Expand Down
41 changes: 24 additions & 17 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@
<email>[email protected]</email>
<active>yes</active>
</developer>
<date>2019-12-05</date>
<time>19:00:00</time>
<date>2019-12-11</date>
<time>15:00:00</time>
<version>
<release>4.4.13RC1</release>
<release>4.4.13RC2</release>
<api>4.0</api>
</version>
<stability>
Expand All @@ -60,35 +60,41 @@

Enhancement
---
* Support websocket compression on Coroutine\Http\Server (#2943) (@twose)
* Support CURLOPT_PUT, CURLOPT_INFILE, CURLOPT_INFILESIZE (#2954) (@twose)
* Add error info for bind error (@LeiZhang-Hunter) (@twose) (#2972)
* Update error info if socket call failed (it will not warn anymore if not necessary) (1e9b8cbb) (@twose)
* Make library submodule (@twose)
+ Support websocket compression on Coroutine\Http\Server (#2943) (@twose)
+ Support `CURLOPT_PUT`, `CURLOPT_INFILE`, `CURLOPT_INFILESIZE` (#2954) (@twose)
+ Add error info for bind error (#2972) (@LeiZhang-Hunter) (@twose)
+ Update error info if socket call failed (it will not warn anymore if not necessary) (1e9b8cbb) (@twose)
+ Move the library to [a separate repo](https://github.com/swoole/library) (@twose)
+ Support `CURLOPT_IPRESOLVE` (library-12ffb4d6) (@twose)
+ Support `CURLOPT_PORT`, `CURLOPT_PROXYPORT`, `CURLOPT_DNS_USE_GLOBAL_CACHE` (library-5a718920) (@twose)
+ Better `CURLOPT_ENCODING` support (library-7b680712) (@twose)
+ Support `curl_reset`, `CURLOPT_PROXYTYPE`, `CURLOPT_PROXYUSERNAME`, `CURLOPT_PROXYPASSWORD`, `CURLOPT_PROXYUSERPWD` (library-84ce0a04) (@twose)

Fixed
---
* Fixed gdbinit in docker (missing symbol) (d46dc2d7 (@twose)
* Fixed compression in POST request (#2947) (@twose)
* Fixed compatibility of Websocket->push method (ac7dbcbc) (@twose)
* Fixed $output result inconsistency (Yurunsoft) (#2955)
* Fixed Coroutine::fread (#2958) (@matyhtf)
* Fixed Coroutine\Server can not exit normally #2837 (#2962) (@twose)
* Fixed memory leak in HTTP2\Server (#2964) (@twose)
* Fixed unsafe_event (#2970) (@matyhtf)
* Fixed compatibility of `Websocket->push` method (ac7dbcbc) (@twose)
* Fixed `$output` result inconsistency (@Yurunsoft) (#2955)
* Fixed `Coroutine::fread` (#2958) (@matyhtf)
* Fixed `Coroutine\Server` can not exit normally #2837 (#2962) (@twose)
* Fixed memory leak in HTTP2 Server (#2964) (@twose)
* Fixed `unsafe_event` (#2970) (@matyhtf)
* Fixed illegal call after server start (#2977) (@twose)
* Fixed WebSocket\Frame can not enable mask (#2982) (#2983) (@twose)
* Fixed memory leak of Process callback (898894a7) (@twose)
* Fixed `WebSocket\Frame` can not enable mask (#2982) (#2983) (@twose)
* Fixed memory leak of `Process` callback (898894a7) (@twose)
* Fixed case where minfd is never updated (#2985)
* Fixed HTTP2 module is always enable (3925e212) (@twose)
* Fixed HTTP2 context double free (#2987) (f4cdff1b) (@twose)
* Fixed string comparison (#2988) (97c6c425) (9e5eae63) (@twose)
* Fixed HTTP2 pipeline (#2993) (@twose)
* Fixed coroutine context has been destroyed (#2991) (@twose)
* Fixed illegal usage of `Process::daemon` (#3005) (@twose)
* Fixed compilation without zlib (#3008) (@twose)

Kernel
---
* Refactor swoole_(get|set)_object to the way of extending zend_object (more stable and faster) (#2966) (@twose)
* Refactor `swoole_(get|set)_object` to the way of extending `zend_object` (more stable and efficient) (#2966) (@twose)
* Support Github Actions (@twose) (@matyhtf)
</notes>
<contents>
Expand All @@ -102,6 +108,7 @@
<file role="src" name="benchmark/aio.php" />
<file role="src" name="benchmark/benchmark.php" />
<file role="src" name="benchmark/bin/async.php" />
<file role="src" name="benchmark/bin/ipc.php" />
<file role="test" name="benchmark/bin/keep_conn.phpt" />
<file role="src" name="benchmark/bin/sync.php" />
<file role="src" name="benchmark/co_http_client.php" />
Expand Down
17 changes: 11 additions & 6 deletions php_swoole_library.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Generated by build-library.php, Please DO NOT modify!
*/

/* $Id: 84ce0a045c0d9733483dc99ea4938c9ed5d46616 */
/* $Id: a236ce004518e166b483d8d72cf5cc9ac2282164 */

static const char* swoole_library_source_constants =
"\n"
Expand Down Expand Up @@ -2591,7 +2591,7 @@ static const char* swoole_library_source_core_curl_exception =

static const char* swoole_library_source_core_curl_handler =
"\n"
"/** @noinspection PhpDuplicateSwitchCaseBodyInspection */\n"
"/** @noinspection PhpComposerExtensionStubsInspection, PhpDuplicateSwitchCaseBodyInspection */\n"
"\n"
"namespace Swoole\\Curl;\n"
"\n"
Expand Down Expand Up @@ -3061,8 +3061,10 @@ static const char* swoole_library_source_core_curl_handler =
" $this->headers['Accept-Encoding'] = $value;\n"
" break;\n"
" case CURLOPT_PROXYTYPE:\n"
" if ($value !== CURLPROXY_HTTP || $value !== CURLPROXY_SOCKS5) {\n"
" throw new Swoole\\Curl\\Exception('swoole_curl_setopt(): Only support following CURLOPT_PROXYTYPE: CURLPROXY_HTTP, CURLPROXY_SOCKS5');\n"
" if ($value !== CURLPROXY_HTTP and $value !== CURLPROXY_SOCKS5) {\n"
" throw new Swoole\\Curl\\Exception(\n"
" 'swoole_curl_setopt(): Only support following CURLOPT_PROXYTYPE values: CURLPROXY_HTTP, CURLPROXY_SOCKS5'\n"
" );\n"
" }\n"
" $this->proxy_type = $value;\n"
" break;\n"
Expand Down Expand Up @@ -3091,8 +3093,10 @@ static const char* swoole_library_source_core_curl_handler =
" $this->method = 'HEAD';\n"
" break;\n"
" case CURLOPT_IPRESOLVE:\n"
" if ($value !== CURL_IPRESOLVE_WHATEVER and $value !== CURL_IPRESOLVE_V6) {\n"
" throw new Swoole\\Curl\\Exception('swoole_curl_setopt(): IPV6 only is not supported');\n"
" if ($value !== CURL_IPRESOLVE_WHATEVER and $value !== CURL_IPRESOLVE_V4) {\n"
" throw new Swoole\\Curl\\Exception(\n"
" 'swoole_curl_setopt(): Only support following CURLOPT_IPRESOLVE values: CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4'\n"
" );\n"
" }\n"
" break;\n"
" /**\n"
Expand Down Expand Up @@ -3306,6 +3310,7 @@ static const char* swoole_library_source_core_curl_handler =

static const char* swoole_library_source_ext_curl =
"\n"
"/** @noinspection PhpComposerExtensionStubsInspection */\n"
"\n"
"function swoole_curl_init(string $url = ''): Swoole\\Curl\\Handler\n"
"{\n"
Expand Down
2 changes: 1 addition & 1 deletion tools/constant-generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
$replaced
);

if (!$replaced || !file_put_contents(CONSTANT_PHP, $constant_php_content)) {
if (!$replaced || !file_put_contents($constant_php, $constant_php_content)) {
swoole_error('Update Constant failed ');
}

Expand Down

0 comments on commit cbef092

Please sign in to comment.