Lines Matching refs:extension
153 zend_extension extension; in zend_register_extension() local
155 extension = *new_extension; in zend_register_extension()
156 extension.handle = handle; in zend_register_extension()
158 zend_extension_dispatch_message(ZEND_EXTMSG_NEW_EXTENSION, &extension); in zend_register_extension()
160 zend_llist_add_element(&zend_extensions, &extension); in zend_register_extension()
162 if (extension.op_array_ctor) { in zend_register_extension()
165 if (extension.op_array_dtor) { in zend_register_extension()
168 if (extension.op_array_handler) { in zend_register_extension()
171 if (extension.op_array_persist_calc) { in zend_register_extension()
174 if (extension.op_array_persist) { in zend_register_extension()
182 static void zend_extension_shutdown(zend_extension *extension) in zend_extension_shutdown() argument
185 if (extension->shutdown) { in zend_extension_shutdown()
186 extension->shutdown(extension); in zend_extension_shutdown()
192 static int zend_extension_startup(zend_extension *extension) in zend_extension_startup() argument
195 if (extension->startup) { in zend_extension_startup()
196 if (extension->startup(extension)!=SUCCESS) { in zend_extension_startup()
199 zend_append_version_info(extension); in zend_extension_startup()
229 void zend_extension_dtor(zend_extension *extension) in zend_extension_dtor() argument
232 if (extension->handle && !getenv("ZEND_DONT_UNLOAD_MODULES")) { in zend_extension_dtor()
233 DL_UNLOAD(extension->handle); in zend_extension_dtor()
239 static void zend_extension_message_dispatcher(const zend_extension *extension, int num_args, va_lis… in zend_extension_message_dispatcher() argument
244 if (!extension->message_handler || num_args!=2) { in zend_extension_message_dispatcher()
249 extension->message_handler(message, arg); in zend_extension_message_dispatcher()
369 zend_extension *extension = (zend_extension *) element->data; in zend_get_extension() local
371 if (!strcmp(extension->name, extension_name)) { in zend_get_extension()
372 return extension; in zend_get_extension()
384 static void zend_extension_op_array_persist_calc_handler(zend_extension *extension, zend_extension_… in zend_extension_op_array_persist_calc_handler() argument
386 if (extension->op_array_persist_calc) { in zend_extension_op_array_persist_calc_handler()
387 data->size += extension->op_array_persist_calc(data->op_array); in zend_extension_op_array_persist_calc_handler()
391 static void zend_extension_op_array_persist_handler(zend_extension *extension, zend_extension_persi… in zend_extension_op_array_persist_handler() argument
393 if (extension->op_array_persist) { in zend_extension_op_array_persist_handler()
394 size_t size = extension->op_array_persist(data->op_array, data->mem); in zend_extension_op_array_persist_handler()