Lines Matching refs:extension
152 zend_extension extension; in zend_register_extension() local
154 extension = *new_extension; in zend_register_extension()
155 extension.handle = handle; in zend_register_extension()
157 zend_extension_dispatch_message(ZEND_EXTMSG_NEW_EXTENSION, &extension); in zend_register_extension()
159 zend_llist_add_element(&zend_extensions, &extension); in zend_register_extension()
161 if (extension.op_array_ctor) { in zend_register_extension()
164 if (extension.op_array_dtor) { in zend_register_extension()
167 if (extension.op_array_handler) { in zend_register_extension()
170 if (extension.op_array_persist_calc) { in zend_register_extension()
173 if (extension.op_array_persist) { in zend_register_extension()
181 static void zend_extension_shutdown(zend_extension *extension) in zend_extension_shutdown() argument
184 if (extension->shutdown) { in zend_extension_shutdown()
185 extension->shutdown(extension); in zend_extension_shutdown()
191 static int zend_extension_startup(zend_extension *extension) in zend_extension_startup() argument
194 if (extension->startup) { in zend_extension_startup()
195 if (extension->startup(extension)!=SUCCESS) { in zend_extension_startup()
198 zend_append_version_info(extension); in zend_extension_startup()
227 void zend_extension_dtor(zend_extension *extension) in zend_extension_dtor() argument
230 if (extension->handle && !getenv("ZEND_DONT_UNLOAD_MODULES")) { in zend_extension_dtor()
231 DL_UNLOAD(extension->handle); in zend_extension_dtor()
237 static void zend_extension_message_dispatcher(const zend_extension *extension, int num_args, va_lis… in zend_extension_message_dispatcher() argument
242 if (!extension->message_handler || num_args!=2) { in zend_extension_message_dispatcher()
247 extension->message_handler(message, arg); in zend_extension_message_dispatcher()
343 zend_extension *extension = (zend_extension *) element->data; in zend_get_extension() local
345 if (!strcmp(extension->name, extension_name)) { in zend_get_extension()
346 return extension; in zend_get_extension()
358 static void zend_extension_op_array_persist_calc_handler(zend_extension *extension, zend_extension_… in zend_extension_op_array_persist_calc_handler() argument
360 if (extension->op_array_persist_calc) { in zend_extension_op_array_persist_calc_handler()
361 data->size += extension->op_array_persist_calc(data->op_array); in zend_extension_op_array_persist_calc_handler()
365 static void zend_extension_op_array_persist_handler(zend_extension *extension, zend_extension_persi… in zend_extension_op_array_persist_handler() argument
367 if (extension->op_array_persist) { in zend_extension_op_array_persist_handler()
368 size_t size = extension->op_array_persist(data->op_array, data->mem); in zend_extension_op_array_persist_handler()