Skip to content

Commit

Permalink
v4.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
doubaokun committed Dec 26, 2021
1 parent b52fbb7 commit a37fe63
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 29 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PROJECT(libopenswoole)

ENABLE_LANGUAGE(ASM)
set(SWOOLE_VERSION 4.9.1-dev)
set(SWOOLE_VERSION 4.9.1)

set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -g")
Expand Down
2 changes: 1 addition & 1 deletion ext-src/swoole_client.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1355,7 +1355,7 @@ static PHP_METHOD(swoole_client, shutdown) {
}
zend_long __how = 0;

ZEND_PARSE_PARAMETERS_START(0, 1)
ZEND_PARSE_PARAMETERS_START(1, 1)
Z_PARAM_LONG(__how)
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);

Expand Down
4 changes: 2 additions & 2 deletions include/swoole_version.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
#define SWOOLE_MAJOR_VERSION 4
#define SWOOLE_MINOR_VERSION 9
#define SWOOLE_RELEASE_VERSION 1
#define SWOOLE_EXTRA_VERSION "dev"
#define SWOOLE_VERSION "4.9.1-dev"
#define SWOOLE_EXTRA_VERSION ""
#define SWOOLE_VERSION "4.9.1"
#define SWOOLE_VERSION_ID 40901
#define SWOOLE_API_VERSION_ID 0x202012a

Expand Down
31 changes: 8 additions & 23 deletions package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
<email>[email protected]</email>
<active>yes</active>
</developer>
<date>2021-12-20</date>
<time>04:00:00</time>
<date>2021-12-27</date>
<time>02:00:00</time>
<version>
<release>4.9.0</release>
<release>4.9.1</release>
<api>4.0</api>
</version>
<stability>
Expand All @@ -36,14 +36,8 @@
</stability>
<license uri="http://www.apache.org/licenses/LICENSE-2.0.html">Apache 2.0</license>
<notes>
- OpenMetrics and JSON format server metrics support
- Added more OpenSwoole server metrics
- Updated $server->stats() API
- Fix CurlMulti bugs
- Fix type bug in Process->wait
- Added Laravel Octane tests
- Added CentOS build tests
- Support disable Postgres with --with-postgres=n
- Bug fixed: Added type validation and value length validation at Swoole Table
- Fix build with old libcurl, thanks @remicollet
</notes>
<contents>
<dir name="/">
Expand Down Expand Up @@ -303,11 +297,6 @@
<file role="doc" name="examples/multicast/client.php" />
<file role="doc" name="examples/multicast/server.php" />
<file role="doc" name="examples/mysql_proxy_server.php" />
<file role="doc" name="examples/namespace/README.md" />
<file role="doc" name="examples/namespace/atomic.php" />
<file role="doc" name="examples/namespace/http_server.php" />
<file role="doc" name="examples/namespace/server.php" />
<file role="doc" name="examples/namespace/timer.php" />
<file role="doc" name="examples/php/buf_size.php" />
<file role="doc" name="examples/php/debug_server.php" />
<file role="doc" name="examples/php/error.php" />
Expand Down Expand Up @@ -367,8 +356,6 @@
<file role="doc" name="examples/runtime/unlink.phpt" />
<file role="doc" name="examples/send_1m_svr.php" />
<file role="doc" name="examples/sendfile_server.php" />
<file role="doc" name="examples/serialize.php" />
<file role="doc" name="examples/serialize2.php" />
<file role="doc" name="examples/server.php" />
<file role="doc" name="examples/server/dispatch_func.php" />
<file role="doc" name="examples/server/dispatch_stream.php" />
Expand Down Expand Up @@ -400,7 +387,6 @@
<file role="doc" name="examples/socket_coro/client.php" />
<file role="doc" name="examples/socket_coro/server.php" />
<file role="doc" name="examples/socket_coro/udp.php" />
<file role="doc" name="examples/ssl/async_client.php" />
<file role="doc" name="examples/ssl/ca/ca-cert.pem" />
<file role="doc" name="examples/ssl/ca/ca-key.pem" />
<file role="doc" name="examples/ssl/ca/ca-req.csr" />
Expand All @@ -414,7 +400,7 @@
<file role="doc" name="examples/ssl/ca/server-req.csr" />
<file role="doc" name="examples/ssl/client.c" />
<file role="doc" name="examples/ssl/client.php" />
<file role="doc" name="examples/ssl/co_client.php" />
<file role="doc" name="examples/ssl/coroutine_client.php" />
<file role="doc" name="examples/ssl/gen_cert.md" />
<file role="doc" name="examples/ssl/http_client.php" />
<file role="doc" name="examples/ssl/passphrase.php" />
Expand All @@ -431,10 +417,9 @@
<file role="doc" name="examples/ssl/websocket_server.php" />
<file role="doc" name="examples/swoole_http_client.php" />
<file role="doc" name="examples/table/deadlock.php" />
<file role="doc" name="examples/table/iterator.php" />
<file role="doc" name="examples/table/server.php" />
<file role="doc" name="examples/table/set.php" />
<file role="doc" name="examples/table/simulation.php" />
<file role="doc" name="examples/table/table_iterator.php" />
<file role="doc" name="examples/table/usage.php" />
<file role="doc" name="examples/task/http.php" />
<file role="doc" name="examples/task/msg_push.php" />
Expand All @@ -451,7 +436,6 @@
<file role="doc" name="examples/timer/clear.php" />
<file role="doc" name="examples/timer/enable_coroutine.php" />
<file role="doc" name="examples/timer/tick.php" />
<file role="doc" name="examples/udp/async_client.php" />
<file role="doc" name="examples/udp/client.php" />
<file role="doc" name="examples/udp/server.php" />
<file role="doc" name="examples/unixsock/async_client.php" />
Expand Down Expand Up @@ -1978,6 +1962,7 @@
<file role="test" name="tests/swoole_table/negative.phpt" />
<file role="test" name="tests/swoole_table/random_bytes.phpt" />
<file role="test" name="tests/swoole_table/set_after_del.phpt" />
<file role="test" name="tests/swoole_table/validation.phpt" />
<file role="test" name="tests/swoole_timer/after.phpt" />
<file role="test" name="tests/swoole_timer/after_fork.phpt" />
<file role="test" name="tests/swoole_timer/bug_2342.phpt" />
Expand Down
2 changes: 1 addition & 1 deletion tests/swoole_curl/curlmultil.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
swoole_curl: curlmulti
--SKIPIF--
<?php
// require __DIR__ . '/../include/skipif.inc';
require __DIR__ . '/../include/skipif.inc';
?>
--FILE--
<?php declare(strict_types = 1);
Expand Down
2 changes: 1 addition & 1 deletion tests/swoole_table/validation.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ echo "DONE";
[key=a,field=c] type error for TYPE_STRING column
[%s] WARNING TableRow::set_value(): [key=a,field=c]string value is too long
[key=a,field=c] value is too long: 9, maximum length: 8
DONE
DONE

0 comments on commit a37fe63

Please sign in to comment.