Skip to content

Commit

Permalink
Remove useless property declarations (#3506)
Browse files Browse the repository at this point in the history
  • Loading branch information
twose authored Jul 29, 2020
1 parent ee2dc83 commit c9e61e1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions swoole_http_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ void php_swoole_http_server_minit(int module_number) {
SW_SET_CLASS_SERIALIZABLE(swoole_http_server, zend_class_serialize_deny, zend_class_unserialize_deny);
SW_SET_CLASS_CLONEABLE(swoole_http_server, sw_zend_class_clone_deny);
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_http_server, sw_zend_class_unset_property_deny);

zend_declare_property_null(swoole_http_server_ce, ZEND_STRL("onRequest"), ZEND_ACC_PRIVATE);
}

http_context *swoole_http_context_new(int fd) {
Expand Down
1 change: 0 additions & 1 deletion swoole_websocket_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,6 @@ void php_swoole_websocket_server_minit(int module_number) {
SW_SET_CLASS_SERIALIZABLE(swoole_websocket_server, zend_class_serialize_deny, zend_class_unserialize_deny);
SW_SET_CLASS_CLONEABLE(swoole_websocket_server, sw_zend_class_clone_deny);
SW_SET_CLASS_UNSET_PROPERTY_HANDLER(swoole_websocket_server, sw_zend_class_unset_property_deny);
zend_declare_property_null(swoole_websocket_server_ce, ZEND_STRL("onHandshake"), ZEND_ACC_PRIVATE);

SW_INIT_CLASS_ENTRY(swoole_websocket_frame,
"Swoole\\WebSocket\\Frame",
Expand Down

0 comments on commit c9e61e1

Please sign in to comment.