Skip to content

Commit a37fe63

Browse files
committed
v4.9.1
1 parent b52fbb7 commit a37fe63

6 files changed

Lines changed: 14 additions & 29 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PROJECT(libopenswoole)
22

33
ENABLE_LANGUAGE(ASM)
4-
set(SWOOLE_VERSION 4.9.1-dev)
4+
set(SWOOLE_VERSION 4.9.1)
55

66
set(CMAKE_CXX_STANDARD 11)
77
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -g")

ext-src/swoole_client.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ static PHP_METHOD(swoole_client, shutdown) {
13551355
}
13561356
zend_long __how = 0;
13571357

1358-
ZEND_PARSE_PARAMETERS_START(0, 1)
1358+
ZEND_PARSE_PARAMETERS_START(1, 1)
13591359
Z_PARAM_LONG(__how)
13601360
ZEND_PARSE_PARAMETERS_END_EX(RETURN_FALSE);
13611361

include/swoole_version.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
#define SWOOLE_MAJOR_VERSION 4
1616
#define SWOOLE_MINOR_VERSION 9
1717
#define SWOOLE_RELEASE_VERSION 1
18-
#define SWOOLE_EXTRA_VERSION "dev"
19-
#define SWOOLE_VERSION "4.9.1-dev"
18+
#define SWOOLE_EXTRA_VERSION ""
19+
#define SWOOLE_VERSION "4.9.1"
2020
#define SWOOLE_VERSION_ID 40901
2121
#define SWOOLE_API_VERSION_ID 0x202012a
2222

package.xml

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
<email>lufei@php.net</email>
2525
<active>yes</active>
2626
</developer>
27-
<date>2021-12-20</date>
28-
<time>04:00:00</time>
27+
<date>2021-12-27</date>
28+
<time>02:00:00</time>
2929
<version>
30-
<release>4.9.0</release>
30+
<release>4.9.1</release>
3131
<api>4.0</api>
3232
</version>
3333
<stability>
@@ -36,14 +36,8 @@
3636
</stability>
3737
<license uri="http://www.apache.org/licenses/LICENSE-2.0.html">Apache 2.0</license>
3838
<notes>
39-
- OpenMetrics and JSON format server metrics support
40-
- Added more OpenSwoole server metrics
41-
- Updated $server->stats() API
42-
- Fix CurlMulti bugs
43-
- Fix type bug in Process->wait
44-
- Added Laravel Octane tests
45-
- Added CentOS build tests
46-
- Support disable Postgres with --with-postgres=n
39+
- Bug fixed: Added type validation and value length validation at Swoole Table
40+
- Fix build with old libcurl, thanks @remicollet
4741
</notes>
4842
<contents>
4943
<dir name="/">
@@ -303,11 +297,6 @@
303297
<file role="doc" name="examples/multicast/client.php" />
304298
<file role="doc" name="examples/multicast/server.php" />
305299
<file role="doc" name="examples/mysql_proxy_server.php" />
306-
<file role="doc" name="examples/namespace/README.md" />
307-
<file role="doc" name="examples/namespace/atomic.php" />
308-
<file role="doc" name="examples/namespace/http_server.php" />
309-
<file role="doc" name="examples/namespace/server.php" />
310-
<file role="doc" name="examples/namespace/timer.php" />
311300
<file role="doc" name="examples/php/buf_size.php" />
312301
<file role="doc" name="examples/php/debug_server.php" />
313302
<file role="doc" name="examples/php/error.php" />
@@ -367,8 +356,6 @@
367356
<file role="doc" name="examples/runtime/unlink.phpt" />
368357
<file role="doc" name="examples/send_1m_svr.php" />
369358
<file role="doc" name="examples/sendfile_server.php" />
370-
<file role="doc" name="examples/serialize.php" />
371-
<file role="doc" name="examples/serialize2.php" />
372359
<file role="doc" name="examples/server.php" />
373360
<file role="doc" name="examples/server/dispatch_func.php" />
374361
<file role="doc" name="examples/server/dispatch_stream.php" />
@@ -400,7 +387,6 @@
400387
<file role="doc" name="examples/socket_coro/client.php" />
401388
<file role="doc" name="examples/socket_coro/server.php" />
402389
<file role="doc" name="examples/socket_coro/udp.php" />
403-
<file role="doc" name="examples/ssl/async_client.php" />
404390
<file role="doc" name="examples/ssl/ca/ca-cert.pem" />
405391
<file role="doc" name="examples/ssl/ca/ca-key.pem" />
406392
<file role="doc" name="examples/ssl/ca/ca-req.csr" />
@@ -414,7 +400,7 @@
414400
<file role="doc" name="examples/ssl/ca/server-req.csr" />
415401
<file role="doc" name="examples/ssl/client.c" />
416402
<file role="doc" name="examples/ssl/client.php" />
417-
<file role="doc" name="examples/ssl/co_client.php" />
403+
<file role="doc" name="examples/ssl/coroutine_client.php" />
418404
<file role="doc" name="examples/ssl/gen_cert.md" />
419405
<file role="doc" name="examples/ssl/http_client.php" />
420406
<file role="doc" name="examples/ssl/passphrase.php" />
@@ -431,10 +417,9 @@
431417
<file role="doc" name="examples/ssl/websocket_server.php" />
432418
<file role="doc" name="examples/swoole_http_client.php" />
433419
<file role="doc" name="examples/table/deadlock.php" />
434-
<file role="doc" name="examples/table/iterator.php" />
435420
<file role="doc" name="examples/table/server.php" />
436-
<file role="doc" name="examples/table/set.php" />
437421
<file role="doc" name="examples/table/simulation.php" />
422+
<file role="doc" name="examples/table/table_iterator.php" />
438423
<file role="doc" name="examples/table/usage.php" />
439424
<file role="doc" name="examples/task/http.php" />
440425
<file role="doc" name="examples/task/msg_push.php" />
@@ -451,7 +436,6 @@
451436
<file role="doc" name="examples/timer/clear.php" />
452437
<file role="doc" name="examples/timer/enable_coroutine.php" />
453438
<file role="doc" name="examples/timer/tick.php" />
454-
<file role="doc" name="examples/udp/async_client.php" />
455439
<file role="doc" name="examples/udp/client.php" />
456440
<file role="doc" name="examples/udp/server.php" />
457441
<file role="doc" name="examples/unixsock/async_client.php" />
@@ -1978,6 +1962,7 @@
19781962
<file role="test" name="tests/swoole_table/negative.phpt" />
19791963
<file role="test" name="tests/swoole_table/random_bytes.phpt" />
19801964
<file role="test" name="tests/swoole_table/set_after_del.phpt" />
1965+
<file role="test" name="tests/swoole_table/validation.phpt" />
19811966
<file role="test" name="tests/swoole_timer/after.phpt" />
19821967
<file role="test" name="tests/swoole_timer/after_fork.phpt" />
19831968
<file role="test" name="tests/swoole_timer/bug_2342.phpt" />

tests/swoole_curl/curlmultil.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
swoole_curl: curlmulti
33
--SKIPIF--
44
<?php
5-
// require __DIR__ . '/../include/skipif.inc';
5+
require __DIR__ . '/../include/skipif.inc';
66
?>
77
--FILE--
88
<?php declare(strict_types = 1);

tests/swoole_table/validation.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,4 @@ echo "DONE";
4040
[key=a,field=c] type error for TYPE_STRING column
4141
[%s] WARNING TableRow::set_value(): [key=a,field=c]string value is too long
4242
[key=a,field=c] value is too long: 9, maximum length: 8
43-
DONE
43+
DONE

0 commit comments

Comments
 (0)