Skip to content

Commit

Permalink
Update version for Swoole 4.6.0 (#3978)
Browse files Browse the repository at this point in the history
Co-authored-by: codinghuang <[email protected]>
  • Loading branch information
matyhtf and huanghantao authored Jan 6, 2021
1 parent fa341e0 commit dd7a536
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 23 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.6.0-alpha)
SET(SWOOLE_VERSION 4.6.0)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -g")
Expand Down
4 changes: 2 additions & 2 deletions include/swoole_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
#define SWOOLE_MAJOR_VERSION 4
#define SWOOLE_MINOR_VERSION 6
#define SWOOLE_RELEASE_VERSION 0
#define SWOOLE_EXTRA_VERSION "beta"
#define SWOOLE_VERSION "4.6.0-beta"
#define SWOOLE_EXTRA_VERSION ""
#define SWOOLE_VERSION "4.6.0"
#define SWOOLE_VERSION_ID 40600
#define SWOOLE_API_VERSION_ID 0x202012a

Expand Down
69 changes: 50 additions & 19 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>2020-12-17</date>
<time>15:00:00</time>
<date>2021-01-04</date>
<time>10:00:00</time>
<version>
<release>4.5.8</release>
<release>4.6.0</release>
<api>4.0</api>
</version>
<stability>
Expand All @@ -54,33 +54,58 @@
</stability>
<license uri="http://www.apache.org/licenses/LICENSE-2.0.html">Apache2.0</license>
<notes>
Backward compatibility Break
---
* Removed the maximum limit of session id, never repeat (#3879) (@matyhtf)
* Disabled unsafe function when use Coroutine, including pcntl_fork/pcntl_wait/pcntl_waitpid/pcntl_sigtimedwait (#3880) (@matyhtf)
* Enabled coroutine hook by default (#3903) (@matyhtf)

Remove
---
- No longer support PHP-7.1 (swoole/swoole-src@4a963df) (swoole/swoole-src@9de8d9e) (@matyhtf)

Deprecated
---
- Marked the Event::rshutdown() as deprecated, please use Coroutine::run instead (#3881) (@matyhtf)

New APIs
---
+ Added swoole_error_log function (swoole/swoole-src@67d2bff) (@matyhtf)
+ Supported SSL for readVector and writeVector (#3857) (@huanghantao)
+ Supported setPriority/getPriority (#3876) (@matyhtf)
+ Supported native-curl hook (#3863) (@matyhtf) (@huanghantao)
+ Supported object style callback parameters for Server, off by default (#3888) (@matyhtf)
+ Supported ext-sockets hook (#3898) (@matyhtf)
+ Supported duplicate header (#3905) (@matyhtf)
+ Supported SSL sni (#3908) (@matyhtf)
+ Supported hook stdio (#3924) (@matyhtf)
+ Supported capture_peer_cert option for stream_socket (#3930) (@matyhtf)
+ Added Http\Request::create/parse/isCompleted (#3938) (@matyhtf)
+ Added Http\Response::isWritable (swoole/swoole-src@db56827) (@matyhtf)

Enhancement
---
+ Did not wait when the child process does not exist (#3832) (@matyhtf)
+ Supported DTLS 16k record (#3849) (@matyhtf)
+ Supported priority for cookie (#3854) (@matyhtf)
+ Supported more CURL options (swoole/library#71) (@sy-records)
+ Handled CURL header names in case insensitive manner (swoole/library#76) (@filakhtov) (@twose) (@sy-records)
+ All time accuracy of Server changed from int to double (#3882) (@matyhtf)
+ Added poll EINTR check for swoole_client_select (#3909) (@shiguangqi)
+ Added coroutine deadlock detect (#3911) (@matyhtf)
+ Supported closing the connection in another process with server base mode (#3916) (@matyhtf)
+ Optimized send to worker from master, reduced memory copy (#3910) (@huanghantao) (@matyhtf)

Fixed
---
* Fixed readv_all and writev_all when trigger EAGAIN errno (#3830) (@huanghantao)
* Fixed warning for PHP8 (swoole/swoole-src@03f3fb0) (@matyhtf)
* Fixed binary security of swoole table keys (#3842) (@twose)
* Fixed System::writeFile append file issue when using FILE_APPEND (swoole/swoole-src@a71956d) (@matyhtf)
* Fixed CURLOPT_WRITEFUNCTION (swoole/library#74) (@sy-records)
* Fixed memory overread when parse form-data boundary (#3858) (@twose)
* Fixed is_callable() can not access internal private callable on PHP8 (#3859) (@twose)
* Pop Coroutine::Channel data when channel is closed (swoole/swoole-src@960431d) (@matyhtf)
* Fixed memory error when use JIT (#3907) (@twose)
* Fixed port->set() dtls compile error (#3947) (@Yurunsoft)
* Fixed connection_list error (#3948) (@sy-records)
* Fixed ssl verify (#3954) (@matyhtf)
* Clear all columns when incr and decr (#3956) (@matyhtf) (@sy-records)
* Fixed failed to compile with LibreSSL 2.7.5 (#3962) (@matyhtf)
* Fixed undefined constant CURLOPT_HEADEROPT and CURLOPT_PROXYHEADER

Kernel
---
* Refactored memory allocation function, replace macro with SwooleG.std_allocator (#3853) (@matyhtf)
* Refactored pipe (#3841) (@matyhtf)
* Ignored SIGPIPE signal by default (swoole/swoole-src@9647678) (@matyhtf)
* Supported running php and c coroutines at same time (swoole/swoole-src@c94bfd8) (@matyhtf)
* Added TEST(coroutine_base, get_elapsed) (#3961) (@luolaifa000)
* Added TEST(coroutine_base, get_init_msec) (#3964) (@luffluo)
</notes>
<contents>
<dir name="/">
Expand Down Expand Up @@ -754,6 +779,7 @@
<file role="test" name="tests/include/ssl_certs/client.csr" />
<file role="test" name="tests/include/ssl_certs/client.key" />
<file role="test" name="tests/include/ssl_certs/client.pem" />
<file role="test" name="tests/include/ssl_certs/mosquitto.org.crt" />
<file role="test" name="tests/include/ssl_certs/server.crt" />
<file role="test" name="tests/include/ssl_certs/server.csr" />
<file role="test" name="tests/include/ssl_certs/server.key" />
Expand Down Expand Up @@ -857,6 +883,7 @@
<file role="test" name="tests/swoole_client_coro/sendfile.phpt" />
<file role="test" name="tests/swoole_client_coro/sendto.phpt" />
<file role="test" name="tests/swoole_client_coro/ssl.phpt" />
<file role="test" name="tests/swoole_client_coro/ssl_verify.phpt" />
<file role="test" name="tests/swoole_client_coro/tcp_client.phpt" />
<file role="test" name="tests/swoole_client_coro/tcp_nodelay.phpt" />
<file role="test" name="tests/swoole_client_coro/timeout.phpt" />
Expand Down Expand Up @@ -1171,6 +1198,7 @@
<file role="test" name="tests/swoole_http_client_coro/websocket/ssl_1.phpt" />
<file role="test" name="tests/swoole_http_client_coro/websocket/ssl_2.phpt" />
<file role="test" name="tests/swoole_http_client_coro/websocket/timeout.phpt" />
<file role="test" name="tests/swoole_http_server/0.phpt" />
<file role="test" name="tests/swoole_http_server/buffer_output_size.phpt" />
<file role="test" name="tests/swoole_http_server/bug_2368.phpt" />
<file role="test" name="tests/swoole_http_server/bug_2444.phpt" />
Expand All @@ -1195,6 +1223,7 @@
<file role="test" name="tests/swoole_http_server/cookie_samesite.phpt" />
<file role="test" name="tests/swoole_http_server/cookie_vs_rawcookie.phpt" />
<file role="test" name="tests/swoole_http_server/cookies.phpt" />
<file role="test" name="tests/swoole_http_server/create_request.phpt" />
<file role="test" name="tests/swoole_http_server/data_parse.phpt" />
<file role="test" name="tests/swoole_http_server/disable_coroutine.phpt" />
<file role="test" name="tests/swoole_http_server/dispatch_mode_7.phpt" />
Expand Down Expand Up @@ -1584,6 +1613,7 @@
<file role="test" name="tests/swoole_server/close_in_non_current_worker.phpt" />
<file role="test" name="tests/swoole_server/close_in_other_worker_with_base.phpt" />
<file role="test" name="tests/swoole_server/close_in_task_worker.phpt" />
<file role="test" name="tests/swoole_server/close_max_fd.phpt" />
<file role="test" name="tests/swoole_server/close_queued.phpt" />
<file role="test" name="tests/swoole_server/connections.phpt" />
<file role="test" name="tests/swoole_server/discard_timeout_packet.phpt" />
Expand Down Expand Up @@ -1804,6 +1834,7 @@
<file role="test" name="tests/swoole_table/big_size.phpt" />
<file role="test" name="tests/swoole_table/bug_2263.phpt" />
<file role="test" name="tests/swoole_table/bug_2290.phpt" />
<file role="test" name="tests/swoole_table/del.phpt" />
<file role="test" name="tests/swoole_table/foreach.phpt" />
<file role="test" name="tests/swoole_table/get_after_destroy.phpt" />
<file role="test" name="tests/swoole_table/get_before_create.phpt" />
Expand Down
3 changes: 2 additions & 1 deletion tools/pecl-package.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ function check_source_ver(string $expect_ver, $source_file)
$package_api_ver = $matches['api_v'];
$package_release_stable = $matches['release_s'];
$package_api_stable = $matches['api_s'];
if (round((float)$package_release_ver, 0, PHP_ROUND_HALF_DOWN) != $package_api_ver) {
$major_version = explode(".", $package_release_ver)[0];
if ((int) $major_version != $package_api_ver) {
swoole_error("Wrong api version [{$package_api_ver}] with release version [{$package_release_ver}]");
}
if ($package_release_stable . $package_api_stable !== 'stable' . 'stable') {
Expand Down

0 comments on commit dd7a536

Please sign in to comment.