File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -102,6 +102,18 @@ struct _zend_extension {
102102 int (* build_id_check )(const char * build_id );
103103 op_array_persist_calc_func_t op_array_persist_calc ;
104104 op_array_persist_func_t op_array_persist ;
105+
106+ /* Setting a module_entry indicates a hybrid extension, meaning an
107+ * extension which is also a module. Such extensions can be loaded with
108+ * either "zend_extension=<name>" or "extension=<name>" by INI.
109+ *
110+ * The symbol "get_module" must _not_ be exported, i.e. don't call
111+ * ZEND_GET_MODULE(), and instead use ZEND_MODULE_ENTRY() to assign a value
112+ * to `.module_entry`.
113+ *
114+ * The DL_HANDLE is owned by the zend_extension for hybrid extensions, so
115+ * the handle should be null for the module entry.
116+ */
105117 zend_module_entry * module_entry ;
106118 void * reserved6 ;
107119 void * reserved7 ;
You can’t perform that action at this time.
0 commit comments