Skip to content

Commit d4088d3

Browse files
committed
Add sw_ namespace
1 parent 4cd0e95 commit d4088d3

23 files changed

+31
-31
lines changed

php_swoole.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,7 @@ static sw_inline int add_assoc_ulong_safe(zval *arg, const char *key, zend_ulong
788788
module##_ce->serialize = _serialize; \
789789
module##_ce->unserialize = _unserialize
790790

791-
#define zend_class_clone_deny NULL
791+
#define sw_zend_class_clone_deny NULL
792792
#define SW_SET_CLASS_CLONEABLE(module, _clone_obj) \
793793
module##_handlers.clone_obj = _clone_obj
794794

swoole_atomic.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,13 +146,13 @@ void swoole_atomic_init(int module_number)
146146
{
147147
SW_INIT_CLASS_ENTRY(swoole_atomic, "Swoole\\Atomic", "swoole_atomic", NULL, swoole_atomic_methods);
148148
SW_SET_CLASS_SERIALIZABLE(swoole_atomic, zend_class_serialize_deny, zend_class_unserialize_deny);
149-
SW_SET_CLASS_CLONEABLE(swoole_atomic, zend_class_clone_deny);
149+
SW_SET_CLASS_CLONEABLE(swoole_atomic, sw_zend_class_clone_deny);
150150
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_atomic, sw_zend_class_unset_property_deny);
151151
// SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_atomic);
152152

153153
SW_INIT_CLASS_ENTRY(swoole_atomic_long, "Swoole\\Atomic\\Long", "swoole_atomic_long", NULL, swoole_atomic_long_methods);
154154
SW_SET_CLASS_SERIALIZABLE(swoole_atomic_long, zend_class_serialize_deny, zend_class_unserialize_deny);
155-
SW_SET_CLASS_CLONEABLE(swoole_atomic_long, zend_class_clone_deny);
155+
SW_SET_CLASS_CLONEABLE(swoole_atomic_long, sw_zend_class_clone_deny);
156156
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_atomic_long, sw_zend_class_unset_property_deny);
157157
// SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_atomic_long);
158158
}

swoole_buffer.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ void swoole_buffer_init(int module_number)
8080
{
8181
SW_INIT_CLASS_ENTRY(swoole_buffer, "Swoole\\Buffer", "swoole_buffer", NULL, swoole_buffer_methods);
8282
SW_SET_CLASS_SERIALIZABLE(swoole_buffer, zend_class_serialize_deny, zend_class_unserialize_deny);
83-
SW_SET_CLASS_CLONEABLE(swoole_buffer, zend_class_clone_deny);
83+
SW_SET_CLASS_CLONEABLE(swoole_buffer, sw_zend_class_clone_deny);
8484
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_buffer, sw_zend_class_unset_property_deny);
8585
// SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_buffer);
8686

swoole_channel_coro.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ void swoole_channel_coro_init(int module_number)
121121
{
122122
SW_INIT_CLASS_ENTRY(swoole_channel_coro, "Swoole\\Coroutine\\Channel", NULL, "Co\\Channel", swoole_channel_coro_methods);
123123
SW_SET_CLASS_SERIALIZABLE(swoole_channel_coro, zend_class_serialize_deny, zend_class_unserialize_deny);
124-
SW_SET_CLASS_CLONEABLE(swoole_channel_coro, zend_class_clone_deny);
124+
SW_SET_CLASS_CLONEABLE(swoole_channel_coro, sw_zend_class_clone_deny);
125125
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_channel_coro, sw_zend_class_unset_property_deny);
126126
SW_SET_CLASS_CUSTOM_OBJECT(swoole_channel_coro, swoole_channel_coro_create_object, swoole_channel_coro_free_object, channel_coro, std);
127127
if (SWOOLE_G(use_shortname))

swoole_client.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ void swoole_client_init(int module_number)
262262
{
263263
SW_INIT_CLASS_ENTRY(swoole_client, "Swoole\\Client", "swoole_client", NULL, swoole_client_methods);
264264
SW_SET_CLASS_SERIALIZABLE(swoole_client, zend_class_serialize_deny, zend_class_unserialize_deny);
265-
SW_SET_CLASS_CLONEABLE(swoole_client, zend_class_clone_deny);
265+
SW_SET_CLASS_CLONEABLE(swoole_client, sw_zend_class_clone_deny);
266266
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_client, sw_zend_class_unset_property_deny);
267267
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_client);
268268

swoole_client_coro.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ void swoole_client_coro_init(int module_number)
128128
{
129129
SW_INIT_CLASS_ENTRY(swoole_client_coro, "Swoole\\Coroutine\\Client", NULL, "Co\\Client", swoole_client_coro_methods);
130130
SW_SET_CLASS_SERIALIZABLE(swoole_client_coro, zend_class_serialize_deny, zend_class_unserialize_deny);
131-
SW_SET_CLASS_CLONEABLE(swoole_client_coro, zend_class_clone_deny);
131+
SW_SET_CLASS_CLONEABLE(swoole_client_coro, sw_zend_class_clone_deny);
132132
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_client_coro, sw_zend_class_unset_property_deny);
133133
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_client_coro);
134134

swoole_http2_client_coro.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -249,21 +249,21 @@ void swoole_http2_client_coro_init(int module_number)
249249
{
250250
SW_INIT_CLASS_ENTRY(swoole_http2_client_coro, "Swoole\\Coroutine\\Http2\\Client", NULL, "Co\\Http2\\Client", swoole_http2_client_methods);
251251
SW_SET_CLASS_SERIALIZABLE(swoole_http2_client_coro, zend_class_serialize_deny, zend_class_unserialize_deny);
252-
SW_SET_CLASS_CLONEABLE(swoole_http2_client_coro, zend_class_clone_deny);
252+
SW_SET_CLASS_CLONEABLE(swoole_http2_client_coro, sw_zend_class_clone_deny);
253253
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_http2_client_coro, sw_zend_class_unset_property_deny);
254254
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_http2_client_coro);
255255

256256
SW_INIT_CLASS_ENTRY_EX(swoole_http2_client_coro_exception, "Swoole\\Coroutine\\Http2\\Client\\Exception", NULL, "Co\\Http2\\Client\\Exception", NULL, swoole_exception);
257257

258258
SW_INIT_CLASS_ENTRY(swoole_http2_request, "Swoole\\Http2\\Request", "swoole_http2_request", NULL, NULL);
259259
SW_SET_CLASS_SERIALIZABLE(swoole_http2_request, zend_class_serialize_deny, zend_class_unserialize_deny);
260-
SW_SET_CLASS_CLONEABLE(swoole_http2_request, zend_class_clone_deny);
260+
SW_SET_CLASS_CLONEABLE(swoole_http2_request, sw_zend_class_clone_deny);
261261
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_http2_request, sw_zend_class_unset_property_deny);
262262
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_http2_request);
263263

264264
SW_INIT_CLASS_ENTRY(swoole_http2_response, "Swoole\\Http2\\Response", "swoole_http2_response", NULL, NULL);
265265
SW_SET_CLASS_SERIALIZABLE(swoole_http2_response, zend_class_serialize_deny, zend_class_unserialize_deny);
266-
SW_SET_CLASS_CLONEABLE(swoole_http2_response, zend_class_clone_deny);
266+
SW_SET_CLASS_CLONEABLE(swoole_http2_response, sw_zend_class_clone_deny);
267267
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_http2_response, sw_zend_class_unset_property_deny);
268268
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_http2_response);
269269

swoole_http_client_coro.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1490,7 +1490,7 @@ void swoole_http_client_coro_init(int module_number)
14901490
{
14911491
SW_INIT_CLASS_ENTRY(swoole_http_client_coro, "Swoole\\Coroutine\\Http\\Client", NULL, "Co\\Http\\Client", swoole_http_client_coro_methods);
14921492
SW_SET_CLASS_SERIALIZABLE(swoole_http_client_coro, zend_class_serialize_deny, zend_class_unserialize_deny);
1493-
SW_SET_CLASS_CLONEABLE(swoole_http_client_coro, zend_class_clone_deny);
1493+
SW_SET_CLASS_CLONEABLE(swoole_http_client_coro, sw_zend_class_clone_deny);
14941494
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_http_client_coro, sw_zend_class_unset_property_deny);
14951495
SW_SET_CLASS_CUSTOM_OBJECT(swoole_http_client_coro, swoole_http_client_coro_create_object, swoole_http_client_coro_free_object, http_client_coro, std);
14961496

swoole_http_request.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ void swoole_http_request_init(int module_number)
229229
{
230230
SW_INIT_CLASS_ENTRY(swoole_http_request, "Swoole\\Http\\Request", "swoole_http_request", NULL, swoole_http_request_methods);
231231
SW_SET_CLASS_SERIALIZABLE(swoole_http_request, zend_class_serialize_deny, zend_class_unserialize_deny);
232-
SW_SET_CLASS_CLONEABLE(swoole_http_request, zend_class_clone_deny);
232+
SW_SET_CLASS_CLONEABLE(swoole_http_request, sw_zend_class_clone_deny);
233233
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_http_request, sw_zend_class_unset_property_deny);
234234
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_http_request);
235235

swoole_http_response.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ void swoole_http_response_init(int module_number)
188188
{
189189
SW_INIT_CLASS_ENTRY(swoole_http_response, "Swoole\\Http\\Response", "swoole_http_response", NULL, swoole_http_response_methods);
190190
SW_SET_CLASS_SERIALIZABLE(swoole_http_response, zend_class_serialize_deny, zend_class_unserialize_deny);
191-
SW_SET_CLASS_CLONEABLE(swoole_http_response, zend_class_clone_deny);
191+
SW_SET_CLASS_CLONEABLE(swoole_http_response, sw_zend_class_clone_deny);
192192
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_http_response, sw_zend_class_unset_property_deny);
193193
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_http_response);
194194

swoole_http_server.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ void swoole_http_server_init(int module_number)
164164
{
165165
SW_INIT_CLASS_ENTRY_EX(swoole_http_server, "Swoole\\Http\\Server", "swoole_http_server", NULL, NULL, swoole_server);
166166
SW_SET_CLASS_SERIALIZABLE(swoole_http_server, zend_class_serialize_deny, zend_class_unserialize_deny);
167-
SW_SET_CLASS_CLONEABLE(swoole_http_server, zend_class_clone_deny);
167+
SW_SET_CLASS_CLONEABLE(swoole_http_server, sw_zend_class_clone_deny);
168168
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_http_server, sw_zend_class_unset_property_deny);
169169
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_http_server);
170170

swoole_http_server_coro.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ void swoole_http_server_coro_init(int module_number)
217217
{
218218
SW_INIT_CLASS_ENTRY(swoole_http_server_coro, "Swoole\\Coroutine\\Http\\Server", NULL, "Co\\Http\\Server", swoole_http_server_coro_methods);
219219
SW_SET_CLASS_SERIALIZABLE(swoole_http_server_coro, zend_class_serialize_deny, zend_class_unserialize_deny);
220-
SW_SET_CLASS_CLONEABLE(swoole_http_server_coro, zend_class_clone_deny);
220+
SW_SET_CLASS_CLONEABLE(swoole_http_server_coro, sw_zend_class_clone_deny);
221221
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_http_server_coro, sw_zend_class_unset_property_deny);
222222
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_http_server_coro);
223223
SW_SET_CLASS_CUSTOM_OBJECT(swoole_http_server_coro, swoole_http_server_coro_create_object, swoole_http_server_coro_free_object, http_server_coro_t, std);

swoole_lock.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ void swoole_lock_init(int module_number)
5959
{
6060
SW_INIT_CLASS_ENTRY(swoole_lock, "Swoole\\Lock", "swoole_lock", NULL, swoole_lock_methods);
6161
SW_SET_CLASS_SERIALIZABLE(swoole_lock, zend_class_serialize_deny, zend_class_unserialize_deny);
62-
SW_SET_CLASS_CLONEABLE(swoole_lock, zend_class_clone_deny);
62+
SW_SET_CLASS_CLONEABLE(swoole_lock, sw_zend_class_clone_deny);
6363
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_lock, sw_zend_class_unset_property_deny);
6464
// SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_lock);
6565

swoole_mysql_coro.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -1955,19 +1955,19 @@ void swoole_mysql_coro_init(int module_number)
19551955
{
19561956
SW_INIT_CLASS_ENTRY(swoole_mysql_coro, "Swoole\\Coroutine\\MySQL", NULL, "Co\\MySQL", swoole_mysql_coro_methods);
19571957
SW_SET_CLASS_SERIALIZABLE(swoole_mysql_coro, zend_class_serialize_deny, zend_class_unserialize_deny);
1958-
SW_SET_CLASS_CLONEABLE(swoole_mysql_coro, zend_class_clone_deny);
1958+
SW_SET_CLASS_CLONEABLE(swoole_mysql_coro, sw_zend_class_clone_deny);
19591959
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_mysql_coro, sw_zend_class_unset_property_deny);
19601960
SW_SET_CLASS_CUSTOM_OBJECT(swoole_mysql_coro, swoole_mysql_coro_create_object, swoole_mysql_coro_free_object, mysql_coro_t, std);
19611961

19621962
SW_INIT_CLASS_ENTRY(swoole_mysql_coro_statement, "Swoole\\Coroutine\\MySQL\\Statement", NULL, "Co\\MySQL\\Statement", swoole_mysql_coro_statement_methods);
19631963
SW_SET_CLASS_SERIALIZABLE(swoole_mysql_coro_statement, zend_class_serialize_deny, zend_class_unserialize_deny);
1964-
SW_SET_CLASS_CLONEABLE(swoole_mysql_coro_statement, zend_class_clone_deny);
1964+
SW_SET_CLASS_CLONEABLE(swoole_mysql_coro_statement, sw_zend_class_clone_deny);
19651965
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_mysql_coro_statement, sw_zend_class_unset_property_deny);
19661966
SW_SET_CLASS_CUSTOM_OBJECT(swoole_mysql_coro_statement, swoole_mysql_coro_statement_create_object, swoole_mysql_coro_statement_free_object, mysql_coro_statement_t, std);
19671967

19681968
SW_INIT_CLASS_ENTRY_EX(swoole_mysql_coro_exception, "Swoole\\Coroutine\\MySQL\\Exception", NULL, "Co\\MySQL\\Exception", NULL, swoole_exception);
19691969
SW_SET_CLASS_SERIALIZABLE(swoole_mysql_coro_exception, zend_class_serialize_deny, zend_class_unserialize_deny);
1970-
SW_SET_CLASS_CLONEABLE(swoole_mysql_coro_exception, zend_class_clone_deny);
1970+
SW_SET_CLASS_CLONEABLE(swoole_mysql_coro_exception, sw_zend_class_clone_deny);
19711971
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_mysql_coro_exception, sw_zend_class_unset_property_deny);
19721972
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_mysql_coro_exception);
19731973

swoole_process.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ void swoole_process_init(int module_number)
190190
{
191191
SW_INIT_CLASS_ENTRY(swoole_process, "Swoole\\Process", "swoole_process", NULL, swoole_process_methods);
192192
SW_SET_CLASS_SERIALIZABLE(swoole_process, zend_class_serialize_deny, zend_class_unserialize_deny);
193-
SW_SET_CLASS_CLONEABLE(swoole_process, zend_class_clone_deny);
193+
SW_SET_CLASS_CLONEABLE(swoole_process, sw_zend_class_clone_deny);
194194
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_process, sw_zend_class_unset_property_deny);
195195
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_process);
196196

swoole_process_pool.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void swoole_process_pool_init(int module_number)
8181
{
8282
SW_INIT_CLASS_ENTRY(swoole_process_pool, "Swoole\\Process\\Pool", "swoole_process_pool", NULL, swoole_process_pool_methods);
8383
SW_SET_CLASS_SERIALIZABLE(swoole_process_pool, zend_class_serialize_deny, zend_class_unserialize_deny);
84-
SW_SET_CLASS_CLONEABLE(swoole_process_pool, zend_class_clone_deny);
84+
SW_SET_CLASS_CLONEABLE(swoole_process_pool, sw_zend_class_clone_deny);
8585
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_process_pool, sw_zend_class_unset_property_deny);
8686
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_process_pool);
8787

swoole_redis_coro.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -1933,7 +1933,7 @@ void swoole_redis_coro_init(int module_number)
19331933
{
19341934
SW_INIT_CLASS_ENTRY(swoole_redis_coro, "Swoole\\Coroutine\\Redis", NULL, "Co\\Redis", swoole_redis_coro_methods);
19351935
SW_SET_CLASS_SERIALIZABLE(swoole_redis_coro, zend_class_serialize_deny, zend_class_unserialize_deny);
1936-
SW_SET_CLASS_CLONEABLE(swoole_redis_coro, zend_class_clone_deny);
1936+
SW_SET_CLASS_CLONEABLE(swoole_redis_coro, sw_zend_class_clone_deny);
19371937
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_redis_coro, sw_zend_class_unset_property_deny);
19381938
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_redis_coro);
19391939

swoole_redis_server.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ void swoole_redis_server_init(int module_number)
6868
{
6969
SW_INIT_CLASS_ENTRY_EX(swoole_redis_server, "Swoole\\Redis\\Server", "swoole_redis_server", NULL, swoole_redis_server_methods, swoole_server);
7070
SW_SET_CLASS_SERIALIZABLE(swoole_redis_server, zend_class_serialize_deny, zend_class_unserialize_deny);
71-
SW_SET_CLASS_CLONEABLE(swoole_redis_server, zend_class_clone_deny);
71+
SW_SET_CLASS_CLONEABLE(swoole_redis_server, sw_zend_class_clone_deny);
7272
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_redis_server, sw_zend_class_unset_property_deny);
7373
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_redis_server);
7474

swoole_server.cc

+3-3
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ void swoole_server_init(int module_number)
470470
{
471471
SW_INIT_CLASS_ENTRY(swoole_server, "Swoole\\Server", "swoole_server", NULL, swoole_server_methods);
472472
SW_SET_CLASS_SERIALIZABLE(swoole_server, zend_class_serialize_deny, zend_class_unserialize_deny);
473-
SW_SET_CLASS_CLONEABLE(swoole_server, zend_class_clone_deny);
473+
SW_SET_CLASS_CLONEABLE(swoole_server, sw_zend_class_clone_deny);
474474
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_server, sw_zend_class_unset_property_deny);
475475
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_server);
476476

@@ -483,13 +483,13 @@ void swoole_server_init(int module_number)
483483
SW_INIT_CLASS_ENTRY(swoole_server_task, "Swoole\\Server\\Task", "swoole_server_task", NULL, swoole_server_task_methods);
484484
swoole_server_task_ce->ce_flags |= ZEND_ACC_FINAL;
485485
SW_SET_CLASS_SERIALIZABLE(swoole_server_task, zend_class_serialize_deny, zend_class_unserialize_deny);
486-
SW_SET_CLASS_CLONEABLE(swoole_server_task, zend_class_clone_deny);
486+
SW_SET_CLASS_CLONEABLE(swoole_server_task, sw_zend_class_clone_deny);
487487
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_server_task, sw_zend_class_unset_property_deny);
488488
SW_SET_CLASS_CREATE_AND_FREE(swoole_server_task, swoole_server_task_create_object, swoole_server_task_free_object);
489489

490490
SW_INIT_CLASS_ENTRY(swoole_connection_iterator, "Swoole\\Connection\\Iterator", "swoole_connection_iterator", NULL, swoole_connection_iterator_methods);
491491
SW_SET_CLASS_SERIALIZABLE(swoole_connection_iterator, zend_class_serialize_deny, zend_class_unserialize_deny);
492-
SW_SET_CLASS_CLONEABLE(swoole_connection_iterator, zend_class_clone_deny);
492+
SW_SET_CLASS_CLONEABLE(swoole_connection_iterator, sw_zend_class_clone_deny);
493493
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_connection_iterator, sw_zend_class_unset_property_deny);
494494
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_connection_iterator);
495495
zend_class_implements(swoole_connection_iterator_ce, 2, zend_ce_iterator, zend_ce_arrayaccess);

swoole_server_port.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ void swoole_server_port_init(int module_number)
8383
{
8484
SW_INIT_CLASS_ENTRY(swoole_server_port, "Swoole\\Server\\Port", "swoole_server_port", NULL, swoole_server_port_methods);
8585
SW_SET_CLASS_SERIALIZABLE(swoole_server_port, zend_class_serialize_deny, zend_class_unserialize_deny);
86-
SW_SET_CLASS_CLONEABLE(swoole_server_port, zend_class_clone_deny);
86+
SW_SET_CLASS_CLONEABLE(swoole_server_port, sw_zend_class_clone_deny);
8787
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_server_port, sw_zend_class_unset_property_deny);
8888
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_server_port);
8989

swoole_socket_coro.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -742,7 +742,7 @@ void swoole_socket_coro_init(int module_number)
742742
{
743743
SW_INIT_CLASS_ENTRY(swoole_socket_coro, "Swoole\\Coroutine\\Socket", NULL, "Co\\Socket", swoole_socket_coro_methods);
744744
SW_SET_CLASS_SERIALIZABLE(swoole_socket_coro, zend_class_serialize_deny, zend_class_unserialize_deny);
745-
SW_SET_CLASS_CLONEABLE(swoole_socket_coro, zend_class_clone_deny);
745+
SW_SET_CLASS_CLONEABLE(swoole_socket_coro, sw_zend_class_clone_deny);
746746
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_socket_coro, sw_zend_class_unset_property_deny);
747747
SW_SET_CLASS_CUSTOM_OBJECT(swoole_socket_coro, swoole_socket_coro_create_object, swoole_socket_coro_free_object, socket_coro, std);
748748

swoole_table.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ void swoole_table_init(int module_number)
255255
{
256256
SW_INIT_CLASS_ENTRY(swoole_table, "Swoole\\Table", "swoole_table", NULL, swoole_table_methods);
257257
SW_SET_CLASS_SERIALIZABLE(swoole_table, zend_class_serialize_deny, zend_class_unserialize_deny);
258-
SW_SET_CLASS_CLONEABLE(swoole_table, zend_class_clone_deny);
258+
SW_SET_CLASS_CLONEABLE(swoole_table, sw_zend_class_clone_deny);
259259
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_table, sw_zend_class_unset_property_deny);
260260
// SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_table);
261261
zend_class_implements(swoole_table_ce, 2, zend_ce_iterator, zend_ce_arrayaccess);
@@ -269,7 +269,7 @@ void swoole_table_init(int module_number)
269269

270270
SW_INIT_CLASS_ENTRY(swoole_table_row, "Swoole\\Table\\Row", "swoole_table_row", NULL, swoole_table_row_methods);
271271
SW_SET_CLASS_SERIALIZABLE(swoole_table_row, zend_class_serialize_deny, zend_class_unserialize_deny);
272-
SW_SET_CLASS_CLONEABLE(swoole_table_row, zend_class_clone_deny);
272+
SW_SET_CLASS_CLONEABLE(swoole_table_row, sw_zend_class_clone_deny);
273273
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_table_row, sw_zend_class_unset_property_deny);
274274
// SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_table_row);
275275
zend_class_implements(swoole_table_row_ce, 1, zend_ce_arrayaccess);

swoole_websocket_server.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ void swoole_websocket_server_init(int module_number)
378378
{
379379
SW_INIT_CLASS_ENTRY_EX(swoole_websocket_server, "Swoole\\WebSocket\\Server", "swoole_websocket_server", NULL, swoole_websocket_server_methods, swoole_http_server);
380380
SW_SET_CLASS_SERIALIZABLE(swoole_websocket_server, zend_class_serialize_deny, zend_class_unserialize_deny);
381-
SW_SET_CLASS_CLONEABLE(swoole_websocket_server, zend_class_clone_deny);
381+
SW_SET_CLASS_CLONEABLE(swoole_websocket_server, sw_zend_class_clone_deny);
382382
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_websocket_server, sw_zend_class_unset_property_deny);
383383
SW_SET_CLASS_CREATE_WITH_ITS_OWN_HANDLERS(swoole_websocket_server);
384384
zend_declare_property_null(swoole_http_server_ce, ZEND_STRL("onHandshake"), ZEND_ACC_PRIVATE);

0 commit comments

Comments
 (0)