diff --git a/php_phongo.c b/php_phongo.c index cf41a4e59..516039327 100644 --- a/php_phongo.c +++ b/php_phongo.c @@ -56,27 +56,28 @@ zend_object_handlers* phongo_get_std_object_handlers(void) /* }}} */ /* {{{ Memory allocation wrappers */ -static void* php_phongo_malloc(size_t num_bytes) /* {{{ */ +static void* php_phongo_malloc(size_t num_bytes) { return pemalloc(num_bytes, 1); -} /* }}} */ +} -static void* php_phongo_calloc(size_t num_members, size_t num_bytes) /* {{{ */ +static void* php_phongo_calloc(size_t num_members, size_t num_bytes) { return pecalloc(num_members, num_bytes, 1); -} /* }}} */ +} -static void* php_phongo_realloc(void* mem, size_t num_bytes) /* {{{ */ +static void* php_phongo_realloc(void* mem, size_t num_bytes) { return perealloc(mem, num_bytes, 1); -} /* }}} */ +} -static void php_phongo_free(void* mem) /* {{{ */ +static void php_phongo_free(void* mem) { if (mem) { pefree(mem, 1); } -} /* }}} */ +} +/* }}} */ PHP_RINIT_FUNCTION(mongodb) /* {{{ */ { @@ -153,12 +154,12 @@ static zend_class_entry* php_phongo_fetch_internal_class(const char* class_name, return NULL; } -static HashTable* php_phongo_std_get_gc(phongo_compat_object_handler_type* object, zval** table, int* n) /* {{{ */ +static HashTable* php_phongo_std_get_gc(phongo_compat_object_handler_type* object, zval** table, int* n) { *table = NULL; *n = 0; return zend_std_get_properties(object); -} /* }}} */ +} PHP_MINIT_FUNCTION(mongodb) /* {{{ */ { @@ -515,20 +516,6 @@ PHP_MINFO_FUNCTION(mongodb) /* {{{ */ phongo_display_ini_entries(ZEND_MODULE_INFO_FUNC_ARGS_PASSTHRU); } /* }}} */ -/* {{{ Shared function entries for disabling constructors and unserialize() */ -PHP_FUNCTION(MongoDB_disabled___construct) /* {{{ */ -{ - phongo_throw_exception(PHONGO_ERROR_RUNTIME, "Accessing private constructor"); -} /* }}} */ - -PHP_FUNCTION(MongoDB_disabled___wakeup) /* {{{ */ -{ - PHONGO_PARSE_PARAMETERS_NONE(); - - phongo_throw_exception(PHONGO_ERROR_RUNTIME, "%s", "MongoDB\\Driver objects cannot be serialized"); -} /* }}} */ -/* }}} */ - /* {{{ Module dependencies and module entry */ static const zend_module_dep mongodb_deps[] = { /* clang-format off */ diff --git a/php_phongo.h b/php_phongo.h index 94a5df276..32bdc9602 100644 --- a/php_phongo.h +++ b/php_phongo.h @@ -117,15 +117,4 @@ zend_object_handlers* phongo_get_std_object_handlers(void); phongo_throw_exception(PHONGO_ERROR_RUNTIME, "Accessing private constructor"); \ } -#define PHONGO_DISABLED_WAKEUP(classname) \ - static PHP_METHOD(classname, __wakeup) \ - { \ - PHONGO_PARSE_PARAMETERS_NONE(); \ - phongo_throw_exception(PHONGO_ERROR_RUNTIME, "MongoDB\\Driver objects cannot be serialized"); \ - } - -/* Shared function entries for disabling constructors and unserialize() */ -PHP_FUNCTION(MongoDB_disabled___construct); -PHP_FUNCTION(MongoDB_disabled___wakeup); - #endif /* PHONGO_H */ diff --git a/src/BSON/Iterator.c b/src/BSON/Iterator.c index 7c4c3a7f5..59ba5f3d9 100644 --- a/src/BSON/Iterator.c +++ b/src/BSON/Iterator.c @@ -169,7 +169,6 @@ static HashTable* php_phongo_iterator_get_properties_hash(phongo_compat_object_h } PHONGO_DISABLED_CONSTRUCTOR(MongoDB_BSON_Iterator) -PHONGO_DISABLED_WAKEUP(MongoDB_BSON_Iterator) static PHP_METHOD(MongoDB_BSON_Iterator, current) { diff --git a/src/BSON/Iterator.stub.php b/src/BSON/Iterator.stub.php index cf3914ba6..a2530b594 100644 --- a/src/BSON/Iterator.stub.php +++ b/src/BSON/Iterator.stub.php @@ -30,6 +30,4 @@ final public function next(): void {} final public function rewind(): void {} final public function valid(): bool {} - - final public function __wakeup(): void {} } diff --git a/src/BSON/Iterator_arginfo.h b/src/BSON/Iterator_arginfo.h index ca3c515f0..c9786ef42 100644 --- a/src/BSON/Iterator_arginfo.h +++ b/src/BSON/Iterator_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 3c935268e2187085468340004c8dc67052d5c19b */ + * Stub hash: 739694e46e6c871380ef1708b2f824e19651621b */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_BSON_Iterator___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -31,8 +31,6 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_BSON_Iterator_valid, 0, 0, _IS_BOOL, 0) ZEND_END_ARG_INFO() -#define arginfo_class_MongoDB_BSON_Iterator___wakeup arginfo_class_MongoDB_BSON_Iterator_next - static ZEND_METHOD(MongoDB_BSON_Iterator, __construct); #if PHP_VERSION_ID >= 80000 @@ -50,7 +48,6 @@ static ZEND_METHOD(MongoDB_BSON_Iterator, key); static ZEND_METHOD(MongoDB_BSON_Iterator, next); static ZEND_METHOD(MongoDB_BSON_Iterator, rewind); static ZEND_METHOD(MongoDB_BSON_Iterator, valid); -static ZEND_METHOD(MongoDB_BSON_Iterator, __wakeup); static const zend_function_entry class_MongoDB_BSON_Iterator_methods[] = { @@ -70,7 +67,6 @@ static const zend_function_entry class_MongoDB_BSON_Iterator_methods[] = { ZEND_ME(MongoDB_BSON_Iterator, next, arginfo_class_MongoDB_BSON_Iterator_next, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_BSON_Iterator, rewind, arginfo_class_MongoDB_BSON_Iterator_rewind, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_BSON_Iterator, valid, arginfo_class_MongoDB_BSON_Iterator_valid, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_BSON_Iterator, __wakeup, arginfo_class_MongoDB_BSON_Iterator___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/BulkWrite.c b/src/MongoDB/BulkWrite.c index 81cb20063..49072dfe8 100644 --- a/src/MongoDB/BulkWrite.c +++ b/src/MongoDB/BulkWrite.c @@ -542,8 +542,6 @@ static PHP_METHOD(MongoDB_Driver_BulkWrite, count) RETURN_LONG(intern->num_ops); } -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_BulkWrite) - /* MongoDB\Driver\BulkWrite object handlers */ static zend_object_handlers php_phongo_handler_bulkwrite; diff --git a/src/MongoDB/BulkWrite.stub.php b/src/MongoDB/BulkWrite.stub.php index ec0e1b02e..1b9d269c6 100644 --- a/src/MongoDB/BulkWrite.stub.php +++ b/src/MongoDB/BulkWrite.stub.php @@ -39,6 +39,4 @@ public function update(array|object $filter, array|object $newObj, ?array $updat */ public function update($filter, $newObj, ?array $updateOptions = null): void {} #endif - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/BulkWrite_arginfo.h b/src/MongoDB/BulkWrite_arginfo.h index 1825b80ec..075cbe082 100644 --- a/src/MongoDB/BulkWrite_arginfo.h +++ b/src/MongoDB/BulkWrite_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 9c3fc38ad4f6c80bf3605de06889de409e74de78 */ + * Stub hash: 04d2be4b4398666979b03842d250984b71de5403 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_BulkWrite___construct, 0, 0, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 1, "null") @@ -50,9 +50,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_BulkWrite_u ZEND_END_ARG_INFO() #endif -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_BulkWrite___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_BulkWrite, __construct); static ZEND_METHOD(MongoDB_Driver_BulkWrite, count); @@ -74,7 +71,6 @@ static ZEND_METHOD(MongoDB_Driver_BulkWrite, update); #if !(PHP_VERSION_ID >= 80000) static ZEND_METHOD(MongoDB_Driver_BulkWrite, update); #endif -static ZEND_METHOD(MongoDB_Driver_BulkWrite, __wakeup); static const zend_function_entry class_MongoDB_Driver_BulkWrite_methods[] = { @@ -98,7 +94,6 @@ static const zend_function_entry class_MongoDB_Driver_BulkWrite_methods[] = { #if !(PHP_VERSION_ID >= 80000) ZEND_ME(MongoDB_Driver_BulkWrite, update, arginfo_class_MongoDB_Driver_BulkWrite_update, ZEND_ACC_PUBLIC) #endif - ZEND_ME(MongoDB_Driver_BulkWrite, __wakeup, arginfo_class_MongoDB_Driver_BulkWrite___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/ClientEncryption.c b/src/MongoDB/ClientEncryption.c index 39ed78ae1..ee5ef3bd7 100644 --- a/src/MongoDB/ClientEncryption.c +++ b/src/MongoDB/ClientEncryption.c @@ -473,8 +473,6 @@ static PHP_METHOD(MongoDB_Driver_ClientEncryption, rewrapManyDataKey) mongoc_client_encryption_rewrap_many_datakey_result_destroy(result); } -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_ClientEncryption) - /* MongoDB\Driver\ClientEncryption object handlers */ static zend_object_handlers php_phongo_handler_clientencryption; diff --git a/src/MongoDB/ClientEncryption.stub.php b/src/MongoDB/ClientEncryption.stub.php index 826d6b4da..d64527f27 100644 --- a/src/MongoDB/ClientEncryption.stub.php +++ b/src/MongoDB/ClientEncryption.stub.php @@ -94,6 +94,4 @@ final public function rewrapManyDataKey(array|object $filter, ?array $options = /** @param array|object $filter */ final public function rewrapManyDataKey($filter, ?array $options = null): object {} #endif - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/ClientEncryption_arginfo.h b/src/MongoDB/ClientEncryption_arginfo.h index 98104ab4c..0df229f5b 100644 --- a/src/MongoDB/ClientEncryption_arginfo.h +++ b/src/MongoDB/ClientEncryption_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: cb36443aeb49b72044a915964006559b4beba4ab */ + * Stub hash: ec6f4a230cb96e8985f250b7d716dd86fbc5e0ea */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_ClientEncryption___construct, 0, 0, 1) ZEND_ARG_TYPE_INFO(0, options, IS_ARRAY, 0) @@ -86,9 +86,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_ClientEncry ZEND_END_ARG_INFO() #endif -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_ClientEncryption___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_ClientEncryption, __construct); static ZEND_METHOD(MongoDB_Driver_ClientEncryption, addKeyAltName); @@ -122,7 +119,6 @@ static ZEND_METHOD(MongoDB_Driver_ClientEncryption, rewrapManyDataKey); #if !(PHP_VERSION_ID >= 80000) static ZEND_METHOD(MongoDB_Driver_ClientEncryption, rewrapManyDataKey); #endif -static ZEND_METHOD(MongoDB_Driver_ClientEncryption, __wakeup); static const zend_function_entry class_MongoDB_Driver_ClientEncryption_methods[] = { @@ -158,7 +154,6 @@ static const zend_function_entry class_MongoDB_Driver_ClientEncryption_methods[] #if !(PHP_VERSION_ID >= 80000) ZEND_ME(MongoDB_Driver_ClientEncryption, rewrapManyDataKey, arginfo_class_MongoDB_Driver_ClientEncryption_rewrapManyDataKey, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) #endif - ZEND_ME(MongoDB_Driver_ClientEncryption, __wakeup, arginfo_class_MongoDB_Driver_ClientEncryption___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Command.c b/src/MongoDB/Command.c index a027a4c97..0b57e29a4 100644 --- a/src/MongoDB/Command.c +++ b/src/MongoDB/Command.c @@ -115,8 +115,6 @@ static PHP_METHOD(MongoDB_Driver_Command, __construct) php_phongo_command_init(intern, document, options); } -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Command) - /* MongoDB\Driver\Command object handlers */ static zend_object_handlers php_phongo_handler_command; diff --git a/src/MongoDB/Command.stub.php b/src/MongoDB/Command.stub.php index e8b16d439..73f206207 100644 --- a/src/MongoDB/Command.stub.php +++ b/src/MongoDB/Command.stub.php @@ -15,6 +15,4 @@ final public function __construct(array|object $document, ?array $commandOptions /** @param array|object $document */ final public function __construct($document, ?array $commandOptions = null) {} #endif - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Command_arginfo.h b/src/MongoDB/Command_arginfo.h index d1920a372..b24aa78c6 100644 --- a/src/MongoDB/Command_arginfo.h +++ b/src/MongoDB/Command_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: e181b2dbea612c11c9318cc302901228e887c559 */ + * Stub hash: 3f152d923c08b31fc0af5921471b25606fc64192 */ #if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Command___construct, 0, 0, 1) @@ -15,9 +15,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Command___construct, 0, 0, 1 ZEND_END_ARG_INFO() #endif -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Command___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 80000 static ZEND_METHOD(MongoDB_Driver_Command, __construct); @@ -25,7 +22,6 @@ static ZEND_METHOD(MongoDB_Driver_Command, __construct); #if !(PHP_VERSION_ID >= 80000) static ZEND_METHOD(MongoDB_Driver_Command, __construct); #endif -static ZEND_METHOD(MongoDB_Driver_Command, __wakeup); static const zend_function_entry class_MongoDB_Driver_Command_methods[] = { @@ -35,7 +31,6 @@ static const zend_function_entry class_MongoDB_Driver_Command_methods[] = { #if !(PHP_VERSION_ID >= 80000) ZEND_ME(MongoDB_Driver_Command, __construct, arginfo_class_MongoDB_Driver_Command___construct, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) #endif - ZEND_ME(MongoDB_Driver_Command, __wakeup, arginfo_class_MongoDB_Driver_Command___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Cursor.c b/src/MongoDB/Cursor.c index 1d270c110..085a9df7e 100644 --- a/src/MongoDB/Cursor.c +++ b/src/MongoDB/Cursor.c @@ -289,7 +289,6 @@ static PHP_METHOD(MongoDB_Driver_Cursor, rewind) } PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_Cursor) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Cursor) /* MongoDB\Driver\Cursor object handlers */ static zend_object_handlers php_phongo_handler_cursor; diff --git a/src/MongoDB/Cursor.stub.php b/src/MongoDB/Cursor.stub.php index 69af69ec5..b0007046c 100644 --- a/src/MongoDB/Cursor.stub.php +++ b/src/MongoDB/Cursor.stub.php @@ -35,6 +35,4 @@ final public function setTypeMap(array $typemap): void {} final public function toArray(): array {} public function valid(): bool {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Cursor_arginfo.h b/src/MongoDB/Cursor_arginfo.h index 95b9782f7..f8c14b9c9 100644 --- a/src/MongoDB/Cursor_arginfo.h +++ b/src/MongoDB/Cursor_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 2cbb89ebb247f650b26458f40f3cdc196cff386b */ + * Stub hash: b94c509926df512855559d2c0ab4263b9d7dec63 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Cursor___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -40,8 +40,6 @@ ZEND_END_ARG_INFO() #define arginfo_class_MongoDB_Driver_Cursor_valid arginfo_class_MongoDB_Driver_Cursor_isDead -#define arginfo_class_MongoDB_Driver_Cursor___wakeup arginfo_class_MongoDB_Driver_Cursor_next - static ZEND_METHOD(MongoDB_Driver_Cursor, __construct); #if PHP_VERSION_ID >= 80000 @@ -59,7 +57,6 @@ static ZEND_METHOD(MongoDB_Driver_Cursor, rewind); static ZEND_METHOD(MongoDB_Driver_Cursor, setTypeMap); static ZEND_METHOD(MongoDB_Driver_Cursor, toArray); static ZEND_METHOD(MongoDB_Driver_Cursor, valid); -static ZEND_METHOD(MongoDB_Driver_Cursor, __wakeup); static const zend_function_entry class_MongoDB_Driver_Cursor_methods[] = { @@ -79,7 +76,6 @@ static const zend_function_entry class_MongoDB_Driver_Cursor_methods[] = { ZEND_ME(MongoDB_Driver_Cursor, setTypeMap, arginfo_class_MongoDB_Driver_Cursor_setTypeMap, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Cursor, toArray, arginfo_class_MongoDB_Driver_Cursor_toArray, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Cursor, valid, arginfo_class_MongoDB_Driver_Cursor_valid, ZEND_ACC_PUBLIC) - ZEND_ME(MongoDB_Driver_Cursor, __wakeup, arginfo_class_MongoDB_Driver_Cursor___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Manager.c b/src/MongoDB/Manager.c index b414cf108..27540afb0 100644 --- a/src/MongoDB/Manager.c +++ b/src/MongoDB/Manager.c @@ -242,8 +242,6 @@ static bool php_phongo_manager_select_server(bool for_writes, bool inherit_read_ return false; } -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Manager) - /* Constructs a new Manager */ static PHP_METHOD(MongoDB_Driver_Manager, __construct) { diff --git a/src/MongoDB/Manager.stub.php b/src/MongoDB/Manager.stub.php index 5866f0237..7759e1898 100644 --- a/src/MongoDB/Manager.stub.php +++ b/src/MongoDB/Manager.stub.php @@ -62,6 +62,4 @@ final public function removeSubscriber(Monitoring\Subscriber $subscriber): void final public function selectServer(?ReadPreference $readPreference = null): Server {} final public function startSession(?array $options = null): Session {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Manager_arginfo.h b/src/MongoDB/Manager_arginfo.h index e9b695b3d..1204b8ccd 100644 --- a/src/MongoDB/Manager_arginfo.h +++ b/src/MongoDB/Manager_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 4b4373da62f18f2c3ab6aae78a495ed84adbe09b */ + * Stub hash: 6a37566522da6a896a4525a5de2fe913d56a7a09 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Manager___construct, 0, 0, 0) ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, uri, IS_STRING, 1, "null") @@ -105,9 +105,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_MongoDB_Driver_Manager_star ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 1, "null") ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Manager___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_Manager, __construct); static ZEND_METHOD(MongoDB_Driver_Manager, addSubscriber); @@ -146,7 +143,6 @@ static ZEND_METHOD(MongoDB_Driver_Manager, getWriteConcern); static ZEND_METHOD(MongoDB_Driver_Manager, removeSubscriber); static ZEND_METHOD(MongoDB_Driver_Manager, selectServer); static ZEND_METHOD(MongoDB_Driver_Manager, startSession); -static ZEND_METHOD(MongoDB_Driver_Manager, __wakeup); static const zend_function_entry class_MongoDB_Driver_Manager_methods[] = { @@ -187,7 +183,6 @@ static const zend_function_entry class_MongoDB_Driver_Manager_methods[] = { ZEND_ME(MongoDB_Driver_Manager, removeSubscriber, arginfo_class_MongoDB_Driver_Manager_removeSubscriber, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Manager, selectServer, arginfo_class_MongoDB_Driver_Manager_selectServer, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Manager, startSession, arginfo_class_MongoDB_Driver_Manager_startSession, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_Manager, __wakeup, arginfo_class_MongoDB_Driver_Manager___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Monitoring/CommandFailedEvent.c b/src/MongoDB/Monitoring/CommandFailedEvent.c index 4450862a9..e491c0817 100644 --- a/src/MongoDB/Monitoring/CommandFailedEvent.c +++ b/src/MongoDB/Monitoring/CommandFailedEvent.c @@ -30,7 +30,6 @@ zend_class_entry* php_phongo_commandfailedevent_ce; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_Monitoring_CommandFailedEvent) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Monitoring_CommandFailedEvent) /* Returns the command name for this event */ static PHP_METHOD(MongoDB_Driver_Monitoring_CommandFailedEvent, getCommandName) diff --git a/src/MongoDB/Monitoring/CommandFailedEvent.stub.php b/src/MongoDB/Monitoring/CommandFailedEvent.stub.php index 587c3ad84..547966da5 100644 --- a/src/MongoDB/Monitoring/CommandFailedEvent.stub.php +++ b/src/MongoDB/Monitoring/CommandFailedEvent.stub.php @@ -28,6 +28,4 @@ final public function getServer(): \MongoDB\Driver\Server {} final public function getServiceId(): ?\MongoDB\BSON\ObjectId {} final public function getServerConnectionId(): ?int {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Monitoring/CommandFailedEvent_arginfo.h b/src/MongoDB/Monitoring/CommandFailedEvent_arginfo.h index 3f4a33cb4..f54f36966 100644 --- a/src/MongoDB/Monitoring/CommandFailedEvent_arginfo.h +++ b/src/MongoDB/Monitoring/CommandFailedEvent_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 008d718040430e0251e01cf2fa8da4e1ed4370d6 */ + * Stub hash: 90ab50ac51a3bb8853e6dd06fc673ce7b4051d28 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_CommandFailedEvent___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -29,9 +29,6 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_CommandFailedEvent_getServerConnectionId, 0, 0, IS_LONG, 1) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_CommandFailedEvent___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandFailedEvent, __construct); static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandFailedEvent, getCommandName); @@ -43,7 +40,6 @@ static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandFailedEvent, getRequestId); static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandFailedEvent, getServer); static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandFailedEvent, getServiceId); static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandFailedEvent, getServerConnectionId); -static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandFailedEvent, __wakeup); static const zend_function_entry class_MongoDB_Driver_Monitoring_CommandFailedEvent_methods[] = { @@ -57,7 +53,6 @@ static const zend_function_entry class_MongoDB_Driver_Monitoring_CommandFailedEv ZEND_ME(MongoDB_Driver_Monitoring_CommandFailedEvent, getServer, arginfo_class_MongoDB_Driver_Monitoring_CommandFailedEvent_getServer, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_CommandFailedEvent, getServiceId, arginfo_class_MongoDB_Driver_Monitoring_CommandFailedEvent_getServiceId, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_CommandFailedEvent, getServerConnectionId, arginfo_class_MongoDB_Driver_Monitoring_CommandFailedEvent_getServerConnectionId, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_Monitoring_CommandFailedEvent, __wakeup, arginfo_class_MongoDB_Driver_Monitoring_CommandFailedEvent___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Monitoring/CommandStartedEvent.c b/src/MongoDB/Monitoring/CommandStartedEvent.c index 121067b9a..f45159e8c 100644 --- a/src/MongoDB/Monitoring/CommandStartedEvent.c +++ b/src/MongoDB/Monitoring/CommandStartedEvent.c @@ -30,7 +30,6 @@ zend_class_entry* php_phongo_commandstartedevent_ce; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_Monitoring_CommandStartedEvent) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Monitoring_CommandStartedEvent) /* Returns the command document associated with the event */ static PHP_METHOD(MongoDB_Driver_Monitoring_CommandStartedEvent, getCommand) diff --git a/src/MongoDB/Monitoring/CommandStartedEvent.stub.php b/src/MongoDB/Monitoring/CommandStartedEvent.stub.php index c0f796eaf..c3dbf3718 100644 --- a/src/MongoDB/Monitoring/CommandStartedEvent.stub.php +++ b/src/MongoDB/Monitoring/CommandStartedEvent.stub.php @@ -26,6 +26,4 @@ final public function getServer(): \MongoDB\Driver\Server {} final public function getServiceId(): ?\MongoDB\BSON\ObjectId {} final public function getServerConnectionId(): ?int {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Monitoring/CommandStartedEvent_arginfo.h b/src/MongoDB/Monitoring/CommandStartedEvent_arginfo.h index 5ff74db91..f52bb79e1 100644 --- a/src/MongoDB/Monitoring/CommandStartedEvent_arginfo.h +++ b/src/MongoDB/Monitoring/CommandStartedEvent_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 00e57d27ee9d61be1acc6913a97f7ee9b2394060 */ + * Stub hash: 4ff134c852d47ac645fcc505d3b9319eb46a3899 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_CommandStartedEvent___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -25,9 +25,6 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_CommandStartedEvent_getServerConnectionId, 0, 0, IS_LONG, 1) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_CommandStartedEvent___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandStartedEvent, __construct); static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandStartedEvent, getCommand); @@ -38,7 +35,6 @@ static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandStartedEvent, getRequestId); static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandStartedEvent, getServer); static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandStartedEvent, getServiceId); static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandStartedEvent, getServerConnectionId); -static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandStartedEvent, __wakeup); static const zend_function_entry class_MongoDB_Driver_Monitoring_CommandStartedEvent_methods[] = { @@ -51,7 +47,6 @@ static const zend_function_entry class_MongoDB_Driver_Monitoring_CommandStartedE ZEND_ME(MongoDB_Driver_Monitoring_CommandStartedEvent, getServer, arginfo_class_MongoDB_Driver_Monitoring_CommandStartedEvent_getServer, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_CommandStartedEvent, getServiceId, arginfo_class_MongoDB_Driver_Monitoring_CommandStartedEvent_getServiceId, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_CommandStartedEvent, getServerConnectionId, arginfo_class_MongoDB_Driver_Monitoring_CommandStartedEvent_getServerConnectionId, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_Monitoring_CommandStartedEvent, __wakeup, arginfo_class_MongoDB_Driver_Monitoring_CommandStartedEvent___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Monitoring/CommandSucceededEvent.c b/src/MongoDB/Monitoring/CommandSucceededEvent.c index 4203787b9..a533c9a73 100644 --- a/src/MongoDB/Monitoring/CommandSucceededEvent.c +++ b/src/MongoDB/Monitoring/CommandSucceededEvent.c @@ -30,7 +30,6 @@ zend_class_entry* php_phongo_commandsucceededevent_ce; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_Monitoring_CommandSucceededEvent) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Monitoring_CommandSucceededEvent) /* Returns the command name for this event */ static PHP_METHOD(MongoDB_Driver_Monitoring_CommandSucceededEvent, getCommandName) diff --git a/src/MongoDB/Monitoring/CommandSucceededEvent.stub.php b/src/MongoDB/Monitoring/CommandSucceededEvent.stub.php index a144392c6..64788bf56 100644 --- a/src/MongoDB/Monitoring/CommandSucceededEvent.stub.php +++ b/src/MongoDB/Monitoring/CommandSucceededEvent.stub.php @@ -26,6 +26,4 @@ final public function getServer(): \MongoDB\Driver\Server {} final public function getServiceId(): ?\MongoDB\BSON\ObjectId {} final public function getServerConnectionId(): ?int {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Monitoring/CommandSucceededEvent_arginfo.h b/src/MongoDB/Monitoring/CommandSucceededEvent_arginfo.h index d15b4b0b1..c726cf52d 100644 --- a/src/MongoDB/Monitoring/CommandSucceededEvent_arginfo.h +++ b/src/MongoDB/Monitoring/CommandSucceededEvent_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 3df3433fd4acd7a35329f4d91f6f33b1a80fc360 */ + * Stub hash: 02437c642fbb49fc7d6294168f82b41c2249f923 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_CommandSucceededEvent___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -26,9 +26,6 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_CommandSucceededEvent_getServerConnectionId, 0, 0, IS_LONG, 1) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_CommandSucceededEvent___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandSucceededEvent, __construct); static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandSucceededEvent, getCommandName); @@ -39,7 +36,6 @@ static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandSucceededEvent, getRequestId static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandSucceededEvent, getServer); static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandSucceededEvent, getServiceId); static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandSucceededEvent, getServerConnectionId); -static ZEND_METHOD(MongoDB_Driver_Monitoring_CommandSucceededEvent, __wakeup); static const zend_function_entry class_MongoDB_Driver_Monitoring_CommandSucceededEvent_methods[] = { @@ -52,7 +48,6 @@ static const zend_function_entry class_MongoDB_Driver_Monitoring_CommandSucceede ZEND_ME(MongoDB_Driver_Monitoring_CommandSucceededEvent, getServer, arginfo_class_MongoDB_Driver_Monitoring_CommandSucceededEvent_getServer, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_CommandSucceededEvent, getServiceId, arginfo_class_MongoDB_Driver_Monitoring_CommandSucceededEvent_getServiceId, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_CommandSucceededEvent, getServerConnectionId, arginfo_class_MongoDB_Driver_Monitoring_CommandSucceededEvent_getServerConnectionId, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_Monitoring_CommandSucceededEvent, __wakeup, arginfo_class_MongoDB_Driver_Monitoring_CommandSucceededEvent___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Monitoring/ServerChangedEvent.c b/src/MongoDB/Monitoring/ServerChangedEvent.c index 7ac4372f4..2ccd33fde 100644 --- a/src/MongoDB/Monitoring/ServerChangedEvent.c +++ b/src/MongoDB/Monitoring/ServerChangedEvent.c @@ -30,7 +30,6 @@ zend_class_entry* php_phongo_serverchangedevent_ce; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_Monitoring_ServerChangedEvent) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Monitoring_ServerChangedEvent) /* Returns this event's host */ static PHP_METHOD(MongoDB_Driver_Monitoring_ServerChangedEvent, getHost) diff --git a/src/MongoDB/Monitoring/ServerChangedEvent.stub.php b/src/MongoDB/Monitoring/ServerChangedEvent.stub.php index 681db7e94..866301915 100644 --- a/src/MongoDB/Monitoring/ServerChangedEvent.stub.php +++ b/src/MongoDB/Monitoring/ServerChangedEvent.stub.php @@ -20,6 +20,4 @@ final public function getNewDescription(): \MongoDB\Driver\ServerDescription {} final public function getPreviousDescription(): \MongoDB\Driver\ServerDescription {} final public function getTopologyId(): \MongoDB\BSON\ObjectId {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Monitoring/ServerChangedEvent_arginfo.h b/src/MongoDB/Monitoring/ServerChangedEvent_arginfo.h index 11d0179aa..02c2c00ea 100644 --- a/src/MongoDB/Monitoring/ServerChangedEvent_arginfo.h +++ b/src/MongoDB/Monitoring/ServerChangedEvent_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 7eb7233a6a75c523ac6201583832d053ad1f3bc8 */ + * Stub hash: ceda7306bdc50f59b0f663cd5a0a76fff7236a25 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerChangedEvent___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -18,9 +18,6 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerChangedEvent_getTopologyId, 0, 0, MongoDB\\BSON\\ObjectId, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerChangedEvent___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerChangedEvent, __construct); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerChangedEvent, getPort); @@ -28,7 +25,6 @@ static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerChangedEvent, getHost); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerChangedEvent, getNewDescription); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerChangedEvent, getPreviousDescription); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerChangedEvent, getTopologyId); -static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerChangedEvent, __wakeup); static const zend_function_entry class_MongoDB_Driver_Monitoring_ServerChangedEvent_methods[] = { @@ -38,7 +34,6 @@ static const zend_function_entry class_MongoDB_Driver_Monitoring_ServerChangedEv ZEND_ME(MongoDB_Driver_Monitoring_ServerChangedEvent, getNewDescription, arginfo_class_MongoDB_Driver_Monitoring_ServerChangedEvent_getNewDescription, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_ServerChangedEvent, getPreviousDescription, arginfo_class_MongoDB_Driver_Monitoring_ServerChangedEvent_getPreviousDescription, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_ServerChangedEvent, getTopologyId, arginfo_class_MongoDB_Driver_Monitoring_ServerChangedEvent_getTopologyId, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_Monitoring_ServerChangedEvent, __wakeup, arginfo_class_MongoDB_Driver_Monitoring_ServerChangedEvent___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Monitoring/ServerClosedEvent.c b/src/MongoDB/Monitoring/ServerClosedEvent.c index 3806e4859..1041471e3 100644 --- a/src/MongoDB/Monitoring/ServerClosedEvent.c +++ b/src/MongoDB/Monitoring/ServerClosedEvent.c @@ -26,7 +26,6 @@ zend_class_entry* php_phongo_serverclosedevent_ce; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_Monitoring_ServerClosedEvent) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Monitoring_ServerClosedEvent) /* Returns this event's host */ static PHP_METHOD(MongoDB_Driver_Monitoring_ServerClosedEvent, getHost) diff --git a/src/MongoDB/Monitoring/ServerClosedEvent.stub.php b/src/MongoDB/Monitoring/ServerClosedEvent.stub.php index 7065b21cc..750f983f9 100644 --- a/src/MongoDB/Monitoring/ServerClosedEvent.stub.php +++ b/src/MongoDB/Monitoring/ServerClosedEvent.stub.php @@ -16,6 +16,4 @@ final public function getPort(): int {} final public function getHost(): string {} final public function getTopologyId(): \MongoDB\BSON\ObjectId {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Monitoring/ServerClosedEvent_arginfo.h b/src/MongoDB/Monitoring/ServerClosedEvent_arginfo.h index 3ee3ad3dc..18d80e2bb 100644 --- a/src/MongoDB/Monitoring/ServerClosedEvent_arginfo.h +++ b/src/MongoDB/Monitoring/ServerClosedEvent_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: f4e790f6c43bb1cdbb24ad2d8755a7bb66d2c3a6 */ + * Stub hash: ea43e62ce17ddb00625fdf165187fa4997867e4d */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerClosedEvent___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -13,15 +13,11 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerClosedEvent_getTopologyId, 0, 0, MongoDB\\BSON\\ObjectId, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerClosedEvent___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerClosedEvent, __construct); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerClosedEvent, getPort); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerClosedEvent, getHost); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerClosedEvent, getTopologyId); -static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerClosedEvent, __wakeup); static const zend_function_entry class_MongoDB_Driver_Monitoring_ServerClosedEvent_methods[] = { @@ -29,7 +25,6 @@ static const zend_function_entry class_MongoDB_Driver_Monitoring_ServerClosedEve ZEND_ME(MongoDB_Driver_Monitoring_ServerClosedEvent, getPort, arginfo_class_MongoDB_Driver_Monitoring_ServerClosedEvent_getPort, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_ServerClosedEvent, getHost, arginfo_class_MongoDB_Driver_Monitoring_ServerClosedEvent_getHost, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_ServerClosedEvent, getTopologyId, arginfo_class_MongoDB_Driver_Monitoring_ServerClosedEvent_getTopologyId, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_Monitoring_ServerClosedEvent, __wakeup, arginfo_class_MongoDB_Driver_Monitoring_ServerClosedEvent___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Monitoring/ServerHeartbeatFailedEvent.c b/src/MongoDB/Monitoring/ServerHeartbeatFailedEvent.c index fdb103909..d2997fa71 100644 --- a/src/MongoDB/Monitoring/ServerHeartbeatFailedEvent.c +++ b/src/MongoDB/Monitoring/ServerHeartbeatFailedEvent.c @@ -24,7 +24,6 @@ zend_class_entry* php_phongo_serverheartbeatfailedevent_ce; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent) /* Returns this event's duration in microseconds */ static PHP_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent, getDurationMicros) diff --git a/src/MongoDB/Monitoring/ServerHeartbeatFailedEvent.stub.php b/src/MongoDB/Monitoring/ServerHeartbeatFailedEvent.stub.php index 30e1e0f0c..f4ea11deb 100644 --- a/src/MongoDB/Monitoring/ServerHeartbeatFailedEvent.stub.php +++ b/src/MongoDB/Monitoring/ServerHeartbeatFailedEvent.stub.php @@ -20,6 +20,4 @@ final public function getPort(): int {} final public function getHost(): string {} final public function isAwaited(): bool {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Monitoring/ServerHeartbeatFailedEvent_arginfo.h b/src/MongoDB/Monitoring/ServerHeartbeatFailedEvent_arginfo.h index ff2393547..f918fd64f 100644 --- a/src/MongoDB/Monitoring/ServerHeartbeatFailedEvent_arginfo.h +++ b/src/MongoDB/Monitoring/ServerHeartbeatFailedEvent_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 110a67ba94066498759282d2f7ca4b865068dbb0 */ + * Stub hash: ac66509ce4aa08f433f90d4cddd406172995531e */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -18,9 +18,6 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent_isAwaited, 0, 0, _IS_BOOL, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent, __construct); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent, getDurationMicros); @@ -28,7 +25,6 @@ static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent, getErro static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent, getPort); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent, getHost); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent, isAwaited); -static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent, __wakeup); static const zend_function_entry class_MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent_methods[] = { @@ -38,7 +34,6 @@ static const zend_function_entry class_MongoDB_Driver_Monitoring_ServerHeartbeat ZEND_ME(MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent, getPort, arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent_getPort, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent, getHost, arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent_getHost, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent, isAwaited, arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent_isAwaited, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent, __wakeup, arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatFailedEvent___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Monitoring/ServerHeartbeatStartedEvent.c b/src/MongoDB/Monitoring/ServerHeartbeatStartedEvent.c index 4adbeca71..167eab4ca 100644 --- a/src/MongoDB/Monitoring/ServerHeartbeatStartedEvent.c +++ b/src/MongoDB/Monitoring/ServerHeartbeatStartedEvent.c @@ -24,7 +24,6 @@ zend_class_entry* php_phongo_serverheartbeatstartedevent_ce; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent) /* Returns this event's host */ static PHP_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent, getHost) diff --git a/src/MongoDB/Monitoring/ServerHeartbeatStartedEvent.stub.php b/src/MongoDB/Monitoring/ServerHeartbeatStartedEvent.stub.php index 0ab363b91..8a5252a75 100644 --- a/src/MongoDB/Monitoring/ServerHeartbeatStartedEvent.stub.php +++ b/src/MongoDB/Monitoring/ServerHeartbeatStartedEvent.stub.php @@ -16,6 +16,4 @@ final public function getPort(): int {} final public function getHost(): string {} final public function isAwaited(): bool {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Monitoring/ServerHeartbeatStartedEvent_arginfo.h b/src/MongoDB/Monitoring/ServerHeartbeatStartedEvent_arginfo.h index d27997110..21c87e7a5 100644 --- a/src/MongoDB/Monitoring/ServerHeartbeatStartedEvent_arginfo.h +++ b/src/MongoDB/Monitoring/ServerHeartbeatStartedEvent_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 34ef69214b7b726a4b3a28a364cc0df4960c2c3c */ + * Stub hash: 3a921eb2828a6b6e23d0ed16944b6e20894a9fe2 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -13,15 +13,11 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent_isAwaited, 0, 0, _IS_BOOL, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent, __construct); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent, getPort); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent, getHost); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent, isAwaited); -static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent, __wakeup); static const zend_function_entry class_MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent_methods[] = { @@ -29,7 +25,6 @@ static const zend_function_entry class_MongoDB_Driver_Monitoring_ServerHeartbeat ZEND_ME(MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent, getPort, arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent_getPort, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent, getHost, arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent_getHost, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent, isAwaited, arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent_isAwaited, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent, __wakeup, arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatStartedEvent___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Monitoring/ServerHeartbeatSucceededEvent.c b/src/MongoDB/Monitoring/ServerHeartbeatSucceededEvent.c index 909a13959..606b4f524 100644 --- a/src/MongoDB/Monitoring/ServerHeartbeatSucceededEvent.c +++ b/src/MongoDB/Monitoring/ServerHeartbeatSucceededEvent.c @@ -24,7 +24,6 @@ zend_class_entry* php_phongo_serverheartbeatsucceededevent_ce; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent) /* Returns this event's duration in microseconds */ static PHP_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent, getDurationMicros) diff --git a/src/MongoDB/Monitoring/ServerHeartbeatSucceededEvent.stub.php b/src/MongoDB/Monitoring/ServerHeartbeatSucceededEvent.stub.php index 98ba6b24b..9f3d00d4c 100644 --- a/src/MongoDB/Monitoring/ServerHeartbeatSucceededEvent.stub.php +++ b/src/MongoDB/Monitoring/ServerHeartbeatSucceededEvent.stub.php @@ -20,6 +20,4 @@ final public function getPort(): int {} final public function getHost(): string {} final public function isAwaited(): bool {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Monitoring/ServerHeartbeatSucceededEvent_arginfo.h b/src/MongoDB/Monitoring/ServerHeartbeatSucceededEvent_arginfo.h index c1d0ecde6..a488f3b65 100644 --- a/src/MongoDB/Monitoring/ServerHeartbeatSucceededEvent_arginfo.h +++ b/src/MongoDB/Monitoring/ServerHeartbeatSucceededEvent_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: a0d52df5d6fc354171792421cdad019ef5f95a0b */ + * Stub hash: 2ebe6d49f71f28d7e5971296c6601a52660a6682 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -18,9 +18,6 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent_isAwaited, 0, 0, _IS_BOOL, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent, __construct); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent, getDurationMicros); @@ -28,7 +25,6 @@ static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent, getR static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent, getPort); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent, getHost); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent, isAwaited); -static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent, __wakeup); static const zend_function_entry class_MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent_methods[] = { @@ -38,7 +34,6 @@ static const zend_function_entry class_MongoDB_Driver_Monitoring_ServerHeartbeat ZEND_ME(MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent, getPort, arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent_getPort, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent, getHost, arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent_getHost, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent, isAwaited, arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent_isAwaited, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent, __wakeup, arginfo_class_MongoDB_Driver_Monitoring_ServerHeartbeatSucceededEvent___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Monitoring/ServerOpeningEvent.c b/src/MongoDB/Monitoring/ServerOpeningEvent.c index 684e35bc3..eef5006a5 100644 --- a/src/MongoDB/Monitoring/ServerOpeningEvent.c +++ b/src/MongoDB/Monitoring/ServerOpeningEvent.c @@ -26,7 +26,6 @@ zend_class_entry* php_phongo_serveropeningevent_ce; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_Monitoring_ServerOpeningEvent) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Monitoring_ServerOpeningEvent) /* Returns this event's host */ static PHP_METHOD(MongoDB_Driver_Monitoring_ServerOpeningEvent, getHost) diff --git a/src/MongoDB/Monitoring/ServerOpeningEvent.stub.php b/src/MongoDB/Monitoring/ServerOpeningEvent.stub.php index bafa68ca8..9ab052f22 100644 --- a/src/MongoDB/Monitoring/ServerOpeningEvent.stub.php +++ b/src/MongoDB/Monitoring/ServerOpeningEvent.stub.php @@ -16,6 +16,4 @@ final public function getPort(): int {} final public function getHost(): string {} final public function getTopologyId(): \MongoDB\BSON\ObjectId {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Monitoring/ServerOpeningEvent_arginfo.h b/src/MongoDB/Monitoring/ServerOpeningEvent_arginfo.h index e49ec03d1..d2526f81b 100644 --- a/src/MongoDB/Monitoring/ServerOpeningEvent_arginfo.h +++ b/src/MongoDB/Monitoring/ServerOpeningEvent_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 6099b3429fb14cdb7ea618302fb1270e9c5011f0 */ + * Stub hash: ff0ed638bd5aa4f82216a9af2fc22743c39d2a2b */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerOpeningEvent___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -13,15 +13,11 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerOpeningEvent_getTopologyId, 0, 0, MongoDB\\BSON\\ObjectId, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_ServerOpeningEvent___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerOpeningEvent, __construct); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerOpeningEvent, getPort); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerOpeningEvent, getHost); static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerOpeningEvent, getTopologyId); -static ZEND_METHOD(MongoDB_Driver_Monitoring_ServerOpeningEvent, __wakeup); static const zend_function_entry class_MongoDB_Driver_Monitoring_ServerOpeningEvent_methods[] = { @@ -29,7 +25,6 @@ static const zend_function_entry class_MongoDB_Driver_Monitoring_ServerOpeningEv ZEND_ME(MongoDB_Driver_Monitoring_ServerOpeningEvent, getPort, arginfo_class_MongoDB_Driver_Monitoring_ServerOpeningEvent_getPort, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_ServerOpeningEvent, getHost, arginfo_class_MongoDB_Driver_Monitoring_ServerOpeningEvent_getHost, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_ServerOpeningEvent, getTopologyId, arginfo_class_MongoDB_Driver_Monitoring_ServerOpeningEvent_getTopologyId, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_Monitoring_ServerOpeningEvent, __wakeup, arginfo_class_MongoDB_Driver_Monitoring_ServerOpeningEvent___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Monitoring/TopologyChangedEvent.c b/src/MongoDB/Monitoring/TopologyChangedEvent.c index 6c767c941..c80ad060c 100644 --- a/src/MongoDB/Monitoring/TopologyChangedEvent.c +++ b/src/MongoDB/Monitoring/TopologyChangedEvent.c @@ -29,7 +29,6 @@ zend_class_entry* php_phongo_topologychangedevent_ce; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_Monitoring_TopologyChangedEvent) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Monitoring_TopologyChangedEvent) /* Returns this event's new description */ static PHP_METHOD(MongoDB_Driver_Monitoring_TopologyChangedEvent, getNewDescription) diff --git a/src/MongoDB/Monitoring/TopologyChangedEvent.stub.php b/src/MongoDB/Monitoring/TopologyChangedEvent.stub.php index ed55a48a8..442a6cff1 100644 --- a/src/MongoDB/Monitoring/TopologyChangedEvent.stub.php +++ b/src/MongoDB/Monitoring/TopologyChangedEvent.stub.php @@ -16,6 +16,4 @@ final public function getNewDescription(): \MongoDB\Driver\TopologyDescription { final public function getPreviousDescription(): \MongoDB\Driver\TopologyDescription {} final public function getTopologyId(): \MongoDB\BSON\ObjectId {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Monitoring/TopologyChangedEvent_arginfo.h b/src/MongoDB/Monitoring/TopologyChangedEvent_arginfo.h index dd07325d2..8ce8f0dc5 100644 --- a/src/MongoDB/Monitoring/TopologyChangedEvent_arginfo.h +++ b/src/MongoDB/Monitoring/TopologyChangedEvent_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 446b61c79dc90b1d153ad449d4026c8c90619144 */ + * Stub hash: 04aa095fba77e78f9a42f36aa2ea1bbad46a953b */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_TopologyChangedEvent___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -12,15 +12,11 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_TopologyChangedEvent_getTopologyId, 0, 0, MongoDB\\BSON\\ObjectId, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_TopologyChangedEvent___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_Monitoring_TopologyChangedEvent, __construct); static ZEND_METHOD(MongoDB_Driver_Monitoring_TopologyChangedEvent, getNewDescription); static ZEND_METHOD(MongoDB_Driver_Monitoring_TopologyChangedEvent, getPreviousDescription); static ZEND_METHOD(MongoDB_Driver_Monitoring_TopologyChangedEvent, getTopologyId); -static ZEND_METHOD(MongoDB_Driver_Monitoring_TopologyChangedEvent, __wakeup); static const zend_function_entry class_MongoDB_Driver_Monitoring_TopologyChangedEvent_methods[] = { @@ -28,7 +24,6 @@ static const zend_function_entry class_MongoDB_Driver_Monitoring_TopologyChanged ZEND_ME(MongoDB_Driver_Monitoring_TopologyChangedEvent, getNewDescription, arginfo_class_MongoDB_Driver_Monitoring_TopologyChangedEvent_getNewDescription, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_TopologyChangedEvent, getPreviousDescription, arginfo_class_MongoDB_Driver_Monitoring_TopologyChangedEvent_getPreviousDescription, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_TopologyChangedEvent, getTopologyId, arginfo_class_MongoDB_Driver_Monitoring_TopologyChangedEvent_getTopologyId, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_Monitoring_TopologyChangedEvent, __wakeup, arginfo_class_MongoDB_Driver_Monitoring_TopologyChangedEvent___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Monitoring/TopologyClosedEvent.c b/src/MongoDB/Monitoring/TopologyClosedEvent.c index 06b61c6bf..102924e4e 100644 --- a/src/MongoDB/Monitoring/TopologyClosedEvent.c +++ b/src/MongoDB/Monitoring/TopologyClosedEvent.c @@ -26,7 +26,6 @@ zend_class_entry* php_phongo_topologyclosedevent_ce; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_Monitoring_TopologyClosedEvent) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Monitoring_TopologyClosedEvent) /* Returns this event's topology id */ static PHP_METHOD(MongoDB_Driver_Monitoring_TopologyClosedEvent, getTopologyId) diff --git a/src/MongoDB/Monitoring/TopologyClosedEvent.stub.php b/src/MongoDB/Monitoring/TopologyClosedEvent.stub.php index 039168b42..b3f0983d1 100644 --- a/src/MongoDB/Monitoring/TopologyClosedEvent.stub.php +++ b/src/MongoDB/Monitoring/TopologyClosedEvent.stub.php @@ -12,6 +12,4 @@ final class TopologyClosedEvent final private function __construct() {} final public function getTopologyId(): \MongoDB\BSON\ObjectId {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Monitoring/TopologyClosedEvent_arginfo.h b/src/MongoDB/Monitoring/TopologyClosedEvent_arginfo.h index 4dfdffa3a..706287bcf 100644 --- a/src/MongoDB/Monitoring/TopologyClosedEvent_arginfo.h +++ b/src/MongoDB/Monitoring/TopologyClosedEvent_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: ce96aca6a81d1806e807d7a9f68dd6648872d80f */ + * Stub hash: 2112d3dfbe44ba8fda6616c97de51e20a66e23e8 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_TopologyClosedEvent___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -7,19 +7,14 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_TopologyClosedEvent_getTopologyId, 0, 0, MongoDB\\BSON\\ObjectId, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_TopologyClosedEvent___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_Monitoring_TopologyClosedEvent, __construct); static ZEND_METHOD(MongoDB_Driver_Monitoring_TopologyClosedEvent, getTopologyId); -static ZEND_METHOD(MongoDB_Driver_Monitoring_TopologyClosedEvent, __wakeup); static const zend_function_entry class_MongoDB_Driver_Monitoring_TopologyClosedEvent_methods[] = { ZEND_ME(MongoDB_Driver_Monitoring_TopologyClosedEvent, __construct, arginfo_class_MongoDB_Driver_Monitoring_TopologyClosedEvent___construct, ZEND_ACC_PRIVATE|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_TopologyClosedEvent, getTopologyId, arginfo_class_MongoDB_Driver_Monitoring_TopologyClosedEvent_getTopologyId, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_Monitoring_TopologyClosedEvent, __wakeup, arginfo_class_MongoDB_Driver_Monitoring_TopologyClosedEvent___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Monitoring/TopologyOpeningEvent.c b/src/MongoDB/Monitoring/TopologyOpeningEvent.c index 448c2db18..e4d552c37 100644 --- a/src/MongoDB/Monitoring/TopologyOpeningEvent.c +++ b/src/MongoDB/Monitoring/TopologyOpeningEvent.c @@ -26,7 +26,6 @@ zend_class_entry* php_phongo_topologyopeningevent_ce; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_Monitoring_TopologyOpeningEvent) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Monitoring_TopologyOpeningEvent) /* Returns this event's topology id */ static PHP_METHOD(MongoDB_Driver_Monitoring_TopologyOpeningEvent, getTopologyId) diff --git a/src/MongoDB/Monitoring/TopologyOpeningEvent.stub.php b/src/MongoDB/Monitoring/TopologyOpeningEvent.stub.php index 2070ad11e..87c6c1155 100644 --- a/src/MongoDB/Monitoring/TopologyOpeningEvent.stub.php +++ b/src/MongoDB/Monitoring/TopologyOpeningEvent.stub.php @@ -12,6 +12,4 @@ final class TopologyOpeningEvent final private function __construct() {} final public function getTopologyId(): \MongoDB\BSON\ObjectId {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Monitoring/TopologyOpeningEvent_arginfo.h b/src/MongoDB/Monitoring/TopologyOpeningEvent_arginfo.h index 7a6a577e3..222d6ee95 100644 --- a/src/MongoDB/Monitoring/TopologyOpeningEvent_arginfo.h +++ b/src/MongoDB/Monitoring/TopologyOpeningEvent_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: c72765c39e5f012ef819de515e42aa04bd19434b */ + * Stub hash: 259972cabb14fbc580187f2d6ffe729c3c7f55de */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_TopologyOpeningEvent___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -7,19 +7,14 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_OBJ_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_TopologyOpeningEvent_getTopologyId, 0, 0, MongoDB\\BSON\\ObjectId, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Monitoring_TopologyOpeningEvent___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_Monitoring_TopologyOpeningEvent, __construct); static ZEND_METHOD(MongoDB_Driver_Monitoring_TopologyOpeningEvent, getTopologyId); -static ZEND_METHOD(MongoDB_Driver_Monitoring_TopologyOpeningEvent, __wakeup); static const zend_function_entry class_MongoDB_Driver_Monitoring_TopologyOpeningEvent_methods[] = { ZEND_ME(MongoDB_Driver_Monitoring_TopologyOpeningEvent, __construct, arginfo_class_MongoDB_Driver_Monitoring_TopologyOpeningEvent___construct, ZEND_ACC_PRIVATE|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Monitoring_TopologyOpeningEvent, getTopologyId, arginfo_class_MongoDB_Driver_Monitoring_TopologyOpeningEvent_getTopologyId, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_Monitoring_TopologyOpeningEvent, __wakeup, arginfo_class_MongoDB_Driver_Monitoring_TopologyOpeningEvent___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Query.c b/src/MongoDB/Query.c index 172b1501b..b92b1938f 100644 --- a/src/MongoDB/Query.c +++ b/src/MongoDB/Query.c @@ -405,8 +405,6 @@ bool phongo_query_init(zval* return_value, zval* filter, zval* options) #undef PHONGO_QUERY_OPT_INT64_DEPRECATED #undef PHONGO_QUERY_OPT_STRING -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Query) - /* Constructs a new Query */ static PHP_METHOD(MongoDB_Driver_Query, __construct) { diff --git a/src/MongoDB/Query.stub.php b/src/MongoDB/Query.stub.php index cb87c3eb2..8d4d4389d 100644 --- a/src/MongoDB/Query.stub.php +++ b/src/MongoDB/Query.stub.php @@ -15,6 +15,4 @@ final public function __construct(array|object $filter, ?array $queryOptions = n /** @param array|object $filter */ final public function __construct($filter, ?array $queryOptions = null) {} #endif - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Query_arginfo.h b/src/MongoDB/Query_arginfo.h index 68edc66fd..079df68b5 100644 --- a/src/MongoDB/Query_arginfo.h +++ b/src/MongoDB/Query_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 896baf668a95c03557d6add9c3a0cc528e5a6468 */ + * Stub hash: 76ba8473a69d995471b4f645fdcc040b13febbad */ #if PHP_VERSION_ID >= 80000 ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Query___construct, 0, 0, 1) @@ -15,9 +15,6 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Query___construct, 0, 0, 1) ZEND_END_ARG_INFO() #endif -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Query___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - #if PHP_VERSION_ID >= 80000 static ZEND_METHOD(MongoDB_Driver_Query, __construct); @@ -25,7 +22,6 @@ static ZEND_METHOD(MongoDB_Driver_Query, __construct); #if !(PHP_VERSION_ID >= 80000) static ZEND_METHOD(MongoDB_Driver_Query, __construct); #endif -static ZEND_METHOD(MongoDB_Driver_Query, __wakeup); static const zend_function_entry class_MongoDB_Driver_Query_methods[] = { @@ -35,7 +31,6 @@ static const zend_function_entry class_MongoDB_Driver_Query_methods[] = { #if !(PHP_VERSION_ID >= 80000) ZEND_ME(MongoDB_Driver_Query, __construct, arginfo_class_MongoDB_Driver_Query___construct, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) #endif - ZEND_ME(MongoDB_Driver_Query, __wakeup, arginfo_class_MongoDB_Driver_Query___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Server.c b/src/MongoDB/Server.c index f2f5ed4dc..33ca3fff8 100644 --- a/src/MongoDB/Server.c +++ b/src/MongoDB/Server.c @@ -34,7 +34,6 @@ zend_class_entry* php_phongo_server_ce; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_Server) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Server) /* Executes a Command on this Server */ static PHP_METHOD(MongoDB_Driver_Server, executeCommand) diff --git a/src/MongoDB/Server.stub.php b/src/MongoDB/Server.stub.php index 9b72e570b..0db68169c 100644 --- a/src/MongoDB/Server.stub.php +++ b/src/MongoDB/Server.stub.php @@ -121,6 +121,4 @@ final public function isPassive(): bool {} final public function isPrimary(): bool {} final public function isSecondary(): bool {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/ServerDescription.c b/src/MongoDB/ServerDescription.c index 37f735608..3b998c532 100644 --- a/src/MongoDB/ServerDescription.c +++ b/src/MongoDB/ServerDescription.c @@ -45,7 +45,6 @@ php_phongo_server_description_type_map_t }; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_ServerDescription) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_ServerDescription) /* Returns the most recent "hello" response */ static PHP_METHOD(MongoDB_Driver_ServerDescription, getHelloResponse) diff --git a/src/MongoDB/ServerDescription.stub.php b/src/MongoDB/ServerDescription.stub.php index c10f30ff3..57a8f42ec 100644 --- a/src/MongoDB/ServerDescription.stub.php +++ b/src/MongoDB/ServerDescription.stub.php @@ -82,6 +82,4 @@ final public function getPort(): int {} final public function getRoundTripTime(): ?int {} final public function getType(): string {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/ServerDescription_arginfo.h b/src/MongoDB/ServerDescription_arginfo.h index 41b6f7f55..fe10e7dd1 100644 --- a/src/MongoDB/ServerDescription_arginfo.h +++ b/src/MongoDB/ServerDescription_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: f08f0c45a9719ff708a03b5470cb6b0822f8f908 */ + * Stub hash: 85cce1e6824dec5cb0d659b841d893a849948eeb */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_ServerDescription___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -20,9 +20,6 @@ ZEND_END_ARG_INFO() #define arginfo_class_MongoDB_Driver_ServerDescription_getType arginfo_class_MongoDB_Driver_ServerDescription_getHost -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_ServerDescription___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_ServerDescription, __construct); static ZEND_METHOD(MongoDB_Driver_ServerDescription, getHelloResponse); @@ -31,7 +28,6 @@ static ZEND_METHOD(MongoDB_Driver_ServerDescription, getLastUpdateTime); static ZEND_METHOD(MongoDB_Driver_ServerDescription, getPort); static ZEND_METHOD(MongoDB_Driver_ServerDescription, getRoundTripTime); static ZEND_METHOD(MongoDB_Driver_ServerDescription, getType); -static ZEND_METHOD(MongoDB_Driver_ServerDescription, __wakeup); static const zend_function_entry class_MongoDB_Driver_ServerDescription_methods[] = { @@ -42,7 +38,6 @@ static const zend_function_entry class_MongoDB_Driver_ServerDescription_methods[ ZEND_ME(MongoDB_Driver_ServerDescription, getPort, arginfo_class_MongoDB_Driver_ServerDescription_getPort, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_ServerDescription, getRoundTripTime, arginfo_class_MongoDB_Driver_ServerDescription_getRoundTripTime, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_ServerDescription, getType, arginfo_class_MongoDB_Driver_ServerDescription_getType, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_ServerDescription, __wakeup, arginfo_class_MongoDB_Driver_ServerDescription___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Server_arginfo.h b/src/MongoDB/Server_arginfo.h index e899016f5..7a2f0b612 100644 --- a/src/MongoDB/Server_arginfo.h +++ b/src/MongoDB/Server_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 2b5ae022d2f31086681627e159b792dd92b4929e */ + * Stub hash: 9b0019f2cbd014ae1e31f5803e0dc5b6c9cf701a */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Server___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -92,9 +92,6 @@ ZEND_END_ARG_INFO() #define arginfo_class_MongoDB_Driver_Server_isSecondary arginfo_class_MongoDB_Driver_Server_isArbiter -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Server___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_Server, __construct); #if PHP_VERSION_ID >= 80000 @@ -130,7 +127,6 @@ static ZEND_METHOD(MongoDB_Driver_Server, isHidden); static ZEND_METHOD(MongoDB_Driver_Server, isPassive); static ZEND_METHOD(MongoDB_Driver_Server, isPrimary); static ZEND_METHOD(MongoDB_Driver_Server, isSecondary); -static ZEND_METHOD(MongoDB_Driver_Server, __wakeup); static const zend_function_entry class_MongoDB_Driver_Server_methods[] = { @@ -168,7 +164,6 @@ static const zend_function_entry class_MongoDB_Driver_Server_methods[] = { ZEND_ME(MongoDB_Driver_Server, isPassive, arginfo_class_MongoDB_Driver_Server_isPassive, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Server, isPrimary, arginfo_class_MongoDB_Driver_Server_isPrimary, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Server, isSecondary, arginfo_class_MongoDB_Driver_Server_isSecondary, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_Server, __wakeup, arginfo_class_MongoDB_Driver_Server___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/Session.c b/src/MongoDB/Session.c index 01039b483..18bf3d564 100644 --- a/src/MongoDB/Session.c +++ b/src/MongoDB/Session.c @@ -156,7 +156,6 @@ static void php_phongo_transaction_options_to_zval(mongoc_client_session_t* cs, } PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_Session) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_Session) /* Advances the cluster time for this Session */ static PHP_METHOD(MongoDB_Driver_Session, advanceClusterTime) diff --git a/src/MongoDB/Session.stub.php b/src/MongoDB/Session.stub.php index 78eae2fda..91f35a425 100644 --- a/src/MongoDB/Session.stub.php +++ b/src/MongoDB/Session.stub.php @@ -73,6 +73,4 @@ final public function isDirty(): bool {} final public function isInTransaction(): bool {} final public function startTransaction(?array $options = null): void {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/Session_arginfo.h b/src/MongoDB/Session_arginfo.h index b2be349a6..a79f46ba5 100644 --- a/src/MongoDB/Session_arginfo.h +++ b/src/MongoDB/Session_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: c6f026b0e22bb1eb53a63956f6c3c40fe99fbd24 */ + * Stub hash: bb079e9e8c8eb59e26ebdf981d1b0ed085c8bbe6 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_Session___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -54,8 +54,6 @@ ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_Session_sta ZEND_ARG_TYPE_INFO_WITH_DEFAULT_VALUE(0, options, IS_ARRAY, 1, "null") ZEND_END_ARG_INFO() -#define arginfo_class_MongoDB_Driver_Session___wakeup arginfo_class_MongoDB_Driver_Session_abortTransaction - static ZEND_METHOD(MongoDB_Driver_Session, __construct); static ZEND_METHOD(MongoDB_Driver_Session, abortTransaction); @@ -77,7 +75,6 @@ static ZEND_METHOD(MongoDB_Driver_Session, getTransactionState); static ZEND_METHOD(MongoDB_Driver_Session, isDirty); static ZEND_METHOD(MongoDB_Driver_Session, isInTransaction); static ZEND_METHOD(MongoDB_Driver_Session, startTransaction); -static ZEND_METHOD(MongoDB_Driver_Session, __wakeup); static const zend_function_entry class_MongoDB_Driver_Session_methods[] = { @@ -101,7 +98,6 @@ static const zend_function_entry class_MongoDB_Driver_Session_methods[] = { ZEND_ME(MongoDB_Driver_Session, isDirty, arginfo_class_MongoDB_Driver_Session_isDirty, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Session, isInTransaction, arginfo_class_MongoDB_Driver_Session_isInTransaction, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_Session, startTransaction, arginfo_class_MongoDB_Driver_Session_startTransaction, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_Session, __wakeup, arginfo_class_MongoDB_Driver_Session___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/TopologyDescription.c b/src/MongoDB/TopologyDescription.c index 6fbbe44ae..0cd1ff5f0 100644 --- a/src/MongoDB/TopologyDescription.c +++ b/src/MongoDB/TopologyDescription.c @@ -32,7 +32,6 @@ zend_class_entry* php_phongo_topologydescription_ce; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_TopologyDescription) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_TopologyDescription) /* Returns an array of ServerDescription objects for all known servers in the topology */ static PHP_METHOD(MongoDB_Driver_TopologyDescription, getServers) diff --git a/src/MongoDB/TopologyDescription.stub.php b/src/MongoDB/TopologyDescription.stub.php index 5c2c61163..46c8d045c 100644 --- a/src/MongoDB/TopologyDescription.stub.php +++ b/src/MongoDB/TopologyDescription.stub.php @@ -54,6 +54,4 @@ final public function getType(): string {} final public function hasReadableServer(?ReadPreference $readPreference = null): bool {} final public function hasWritableServer(): bool {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/TopologyDescription_arginfo.h b/src/MongoDB/TopologyDescription_arginfo.h index 562032636..63fc84a34 100644 --- a/src/MongoDB/TopologyDescription_arginfo.h +++ b/src/MongoDB/TopologyDescription_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 6981655ece74ddf6f2cac7e5704c5f764bb0a2ef */ + * Stub hash: 7c61addf17e525496c8755d437b4db423f6be59d */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_TopologyDescription___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -17,16 +17,12 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_TopologyDescription_hasWritableServer, 0, 0, _IS_BOOL, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_TopologyDescription___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_TopologyDescription, __construct); static ZEND_METHOD(MongoDB_Driver_TopologyDescription, getServers); static ZEND_METHOD(MongoDB_Driver_TopologyDescription, getType); static ZEND_METHOD(MongoDB_Driver_TopologyDescription, hasReadableServer); static ZEND_METHOD(MongoDB_Driver_TopologyDescription, hasWritableServer); -static ZEND_METHOD(MongoDB_Driver_TopologyDescription, __wakeup); static const zend_function_entry class_MongoDB_Driver_TopologyDescription_methods[] = { @@ -35,7 +31,6 @@ static const zend_function_entry class_MongoDB_Driver_TopologyDescription_method ZEND_ME(MongoDB_Driver_TopologyDescription, getType, arginfo_class_MongoDB_Driver_TopologyDescription_getType, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_TopologyDescription, hasReadableServer, arginfo_class_MongoDB_Driver_TopologyDescription_hasReadableServer, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_TopologyDescription, hasWritableServer, arginfo_class_MongoDB_Driver_TopologyDescription_hasWritableServer, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_TopologyDescription, __wakeup, arginfo_class_MongoDB_Driver_TopologyDescription___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/WriteConcernError.c b/src/MongoDB/WriteConcernError.c index 458f86915..97bfedfcd 100644 --- a/src/MongoDB/WriteConcernError.c +++ b/src/MongoDB/WriteConcernError.c @@ -28,7 +28,6 @@ zend_class_entry* php_phongo_writeconcernerror_ce; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_WriteConcernError) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_WriteConcernError) /* Returns the MongoDB error code */ static PHP_METHOD(MongoDB_Driver_WriteConcernError, getCode) diff --git a/src/MongoDB/WriteConcernError.stub.php b/src/MongoDB/WriteConcernError.stub.php index 08480aebf..a84cb462d 100644 --- a/src/MongoDB/WriteConcernError.stub.php +++ b/src/MongoDB/WriteConcernError.stub.php @@ -16,6 +16,4 @@ final public function getCode(): int {} final public function getInfo(): ?object {} final public function getMessage(): string {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/WriteConcernError_arginfo.h b/src/MongoDB/WriteConcernError_arginfo.h index ed01d3d3b..9aefb05ae 100644 --- a/src/MongoDB/WriteConcernError_arginfo.h +++ b/src/MongoDB/WriteConcernError_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: fe3a956a163d5a46651f7ab5cb6be71552191a9d */ + * Stub hash: fe3937eef4e97a6d3097b81fc196c5c5d86e9df8 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_WriteConcernError___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -13,15 +13,11 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_WriteConcernError_getMessage, 0, 0, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_WriteConcernError___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_WriteConcernError, __construct); static ZEND_METHOD(MongoDB_Driver_WriteConcernError, getCode); static ZEND_METHOD(MongoDB_Driver_WriteConcernError, getInfo); static ZEND_METHOD(MongoDB_Driver_WriteConcernError, getMessage); -static ZEND_METHOD(MongoDB_Driver_WriteConcernError, __wakeup); static const zend_function_entry class_MongoDB_Driver_WriteConcernError_methods[] = { @@ -29,7 +25,6 @@ static const zend_function_entry class_MongoDB_Driver_WriteConcernError_methods[ ZEND_ME(MongoDB_Driver_WriteConcernError, getCode, arginfo_class_MongoDB_Driver_WriteConcernError_getCode, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_WriteConcernError, getInfo, arginfo_class_MongoDB_Driver_WriteConcernError_getInfo, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_WriteConcernError, getMessage, arginfo_class_MongoDB_Driver_WriteConcernError_getMessage, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_WriteConcernError, __wakeup, arginfo_class_MongoDB_Driver_WriteConcernError___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/WriteError.c b/src/MongoDB/WriteError.c index 4cd574f98..08aa12d14 100644 --- a/src/MongoDB/WriteError.c +++ b/src/MongoDB/WriteError.c @@ -28,7 +28,6 @@ zend_class_entry* php_phongo_writeerror_ce; PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_WriteError) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_WriteError) /* Returns the MongoDB error code */ static PHP_METHOD(MongoDB_Driver_WriteError, getCode) diff --git a/src/MongoDB/WriteError.stub.php b/src/MongoDB/WriteError.stub.php index f9abaa710..7714b29f8 100644 --- a/src/MongoDB/WriteError.stub.php +++ b/src/MongoDB/WriteError.stub.php @@ -18,6 +18,4 @@ final public function getIndex(): int {} final public function getInfo(): ?object {} final public function getMessage(): string {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/WriteError_arginfo.h b/src/MongoDB/WriteError_arginfo.h index 8abdc1c77..af3126658 100644 --- a/src/MongoDB/WriteError_arginfo.h +++ b/src/MongoDB/WriteError_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: fbea328dd2b5a0c806282daebd86ca7ec9ae3a16 */ + * Stub hash: ec2ba6690be6d39737b4a55eb360296784ec9e00 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_WriteError___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -15,16 +15,12 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_WriteError_getMessage, 0, 0, IS_STRING, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_WriteError___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_WriteError, __construct); static ZEND_METHOD(MongoDB_Driver_WriteError, getCode); static ZEND_METHOD(MongoDB_Driver_WriteError, getIndex); static ZEND_METHOD(MongoDB_Driver_WriteError, getInfo); static ZEND_METHOD(MongoDB_Driver_WriteError, getMessage); -static ZEND_METHOD(MongoDB_Driver_WriteError, __wakeup); static const zend_function_entry class_MongoDB_Driver_WriteError_methods[] = { @@ -33,7 +29,6 @@ static const zend_function_entry class_MongoDB_Driver_WriteError_methods[] = { ZEND_ME(MongoDB_Driver_WriteError, getIndex, arginfo_class_MongoDB_Driver_WriteError_getIndex, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_WriteError, getInfo, arginfo_class_MongoDB_Driver_WriteError_getInfo, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_WriteError, getMessage, arginfo_class_MongoDB_Driver_WriteError_getMessage, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_WriteError, __wakeup, arginfo_class_MongoDB_Driver_WriteError___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/src/MongoDB/WriteResult.c b/src/MongoDB/WriteResult.c index 6ae5426bb..c20a839a1 100644 --- a/src/MongoDB/WriteResult.c +++ b/src/MongoDB/WriteResult.c @@ -144,7 +144,6 @@ static bool php_phongo_writeresult_get_error_replies(php_phongo_writeresult_t* i } PHONGO_DISABLED_CONSTRUCTOR(MongoDB_Driver_WriteResult) -PHONGO_DISABLED_WAKEUP(MongoDB_Driver_WriteResult) /* Returns the number of documents that were inserted */ static PHP_METHOD(MongoDB_Driver_WriteResult, getInsertedCount) diff --git a/src/MongoDB/WriteResult.stub.php b/src/MongoDB/WriteResult.stub.php index 2d114509a..9c5b84080 100644 --- a/src/MongoDB/WriteResult.stub.php +++ b/src/MongoDB/WriteResult.stub.php @@ -32,6 +32,4 @@ final public function getWriteErrors(): array {} final public function getErrorReplies(): array {} final public function isAcknowledged(): bool {} - - final public function __wakeup(): void {} } diff --git a/src/MongoDB/WriteResult_arginfo.h b/src/MongoDB/WriteResult_arginfo.h index a68c5bc70..60a67ac7f 100644 --- a/src/MongoDB/WriteResult_arginfo.h +++ b/src/MongoDB/WriteResult_arginfo.h @@ -1,5 +1,5 @@ /* This is a generated file, edit the .stub.php file instead. - * Stub hash: 279a9a00d54bf67c310f7b8802a5868bf1d507eb */ + * Stub hash: 7d27d88c75113a6642641e8502aff99c2781aa55 */ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_MongoDB_Driver_WriteResult___construct, 0, 0, 0) ZEND_END_ARG_INFO() @@ -31,9 +31,6 @@ ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_WriteResult_isAcknowledged, 0, 0, _IS_BOOL, 0) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_WITH_RETURN_TYPE_INFO_EX(arginfo_class_MongoDB_Driver_WriteResult___wakeup, 0, 0, IS_VOID, 0) -ZEND_END_ARG_INFO() - static ZEND_METHOD(MongoDB_Driver_WriteResult, __construct); static ZEND_METHOD(MongoDB_Driver_WriteResult, getInsertedCount); @@ -47,7 +44,6 @@ static ZEND_METHOD(MongoDB_Driver_WriteResult, getWriteConcernError); static ZEND_METHOD(MongoDB_Driver_WriteResult, getWriteErrors); static ZEND_METHOD(MongoDB_Driver_WriteResult, getErrorReplies); static ZEND_METHOD(MongoDB_Driver_WriteResult, isAcknowledged); -static ZEND_METHOD(MongoDB_Driver_WriteResult, __wakeup); static const zend_function_entry class_MongoDB_Driver_WriteResult_methods[] = { @@ -63,7 +59,6 @@ static const zend_function_entry class_MongoDB_Driver_WriteResult_methods[] = { ZEND_ME(MongoDB_Driver_WriteResult, getWriteErrors, arginfo_class_MongoDB_Driver_WriteResult_getWriteErrors, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_WriteResult, getErrorReplies, arginfo_class_MongoDB_Driver_WriteResult_getErrorReplies, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_ME(MongoDB_Driver_WriteResult, isAcknowledged, arginfo_class_MongoDB_Driver_WriteResult_isAcknowledged, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) - ZEND_ME(MongoDB_Driver_WriteResult, __wakeup, arginfo_class_MongoDB_Driver_WriteResult___wakeup, ZEND_ACC_PUBLIC|ZEND_ACC_FINAL) ZEND_FE_END }; diff --git a/tests/manager/manager-serialization_error-001.phpt b/tests/manager/manager-serialization_error-001.phpt new file mode 100644 index 000000000..49c79012f --- /dev/null +++ b/tests/manager/manager-serialization_error-001.phpt @@ -0,0 +1,33 @@ +--TEST-- +MongoDB\Driver\Manager does not support serialization (PHP >= 8.1) +--SKIPIF-- + + +--FILE-- + +===DONE=== + +--EXPECT-- +OK: Got Exception +Serialization of 'MongoDB\Driver\Manager' is not allowed +OK: Got Exception +Unserialization of 'MongoDB\Driver\Manager' is not allowed +OK: Got Exception +Unserialization of 'MongoDB\Driver\Manager' is not allowed +===DONE=== diff --git a/tests/manager/manager-serialization_error-002.phpt b/tests/manager/manager-serialization_error-002.phpt new file mode 100644 index 000000000..d2434b160 --- /dev/null +++ b/tests/manager/manager-serialization_error-002.phpt @@ -0,0 +1,37 @@ +--TEST-- +MongoDB\Driver\Manager does not support serialization (PHP < 8.1) +--SKIPIF-- + +=', '8.1'); ?> +--FILE-- + +===DONE=== + +--EXPECTF-- +OK: Got Exception +Serialization of 'MongoDB\Driver\Manager' is not allowed +OK: Got Exception +Unserialization of 'MongoDB\Driver\Manager' is not allowed +OK: Got E_WARNING +Erroneous data format for unserializing 'MongoDB\Driver\Manager' +===DONE=== diff --git a/tests/manager/manager-wakeup.phpt b/tests/manager/manager-wakeup.phpt deleted file mode 100644 index 35d97e6a7..000000000 --- a/tests/manager/manager-wakeup.phpt +++ /dev/null @@ -1,29 +0,0 @@ ---TEST-- -MongoDB\Driver\Manager: Manager cannot be woken up ---SKIPIF-- - -=', '7.99'); ?> ---FILE-- -__wakeup(); -}, MongoDB\Driver\Exception\RuntimeException::class), "\n"; - -echo throws(function() use ($manager) { - $manager->__wakeup(1, 2); -}, MongoDB\Driver\Exception\InvalidArgumentException::class), "\n"; - -?> -===DONE=== - ---EXPECTF-- -OK: Got MongoDB\Driver\Exception\RuntimeException -MongoDB\Driver objects cannot be serialized -OK: Got MongoDB\Driver\Exception\InvalidArgumentException -MongoDB\Driver\Manager::__wakeup() expects exactly 0 %r(argument|parameter)%rs, 2 given -===DONE=== diff --git a/tests/standalone/bug0166.phpt b/tests/standalone/bug0166.phpt deleted file mode 100644 index 83e505199..000000000 --- a/tests/standalone/bug0166.phpt +++ /dev/null @@ -1,32 +0,0 @@ ---TEST-- -Disable serialization of objects ---SKIPIF-- - - - ---FILE-- - -===DONE=== - ---EXPECT-- -bool(false) -OK: Got Exception -===DONE===