-
-#define PHP_HTTP_INI_ENTRY(entry, default, scope, updater, global) \
- STD_PHP_INI_ENTRY(entry, default, scope, updater, global, zend_php_http_globals, php_http_globals)
-#define PHP_HTTP_INI_ENTRY_EX(entry, default, scope, updater, displayer, global) \
- STD_PHP_INI_ENTRY_EX(entry, default, scope, updater, global, zend_php_http_globals, php_http_globals, displayer)
-
-#define PHP_HTTP_REGISTER_CLASS(ns, classname, name, parent, flags) \
- { \
- zend_class_entry ce; \
- memset(&ce, 0, sizeof(zend_class_entry)); \
- INIT_NS_CLASS_ENTRY(ce, #ns, #classname, php_ ##name## _method_entry); \
- php_ ##name## _class_entry = zend_register_internal_class_ex(&ce, parent, NULL TSRMLS_CC); \
- php_ ##name## _class_entry->ce_flags |= flags; \
- php_http_register_class(php_ ##name## _get_class_entry); \
- }
-
-#define PHP_HTTP_REGISTER_INTERFACE(ns, ifacename, name, flags) \
- { \
- zend_class_entry ce; \
- memset(&ce, 0, sizeof(zend_class_entry)); \
- INIT_NS_CLASS_ENTRY(ce, #ns, #ifacename, php_ ##name## _method_entry); \
- php_ ##name## _class_entry = zend_register_internal_interface(&ce TSRMLS_CC); \
- php_ ##name## _class_entry->ce_flags |= flags; \
- php_http_register_class(php_ ##name## _get_class_entry); \
- }
-
-#define PHP_HTTP_REGISTER_EXCEPTION(classname, cename, parent) \
- { \
- zend_class_entry ce; \
- memset(&ce, 0, sizeof(zend_class_entry)); \
- INIT_NS_CLASS_ENTRY(ce, "http", #classname, NULL); \
- ce.create_object = NULL; \
- cename = zend_register_internal_class_ex(&ce, parent, NULL TSRMLS_CC); \
- }
-