php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
php_dom.h
Go to the documentation of this file.
1/*
2 +----------------------------------------------------------------------+
3 | Copyright (c) The PHP Group |
4 +----------------------------------------------------------------------+
5 | This source file is subject to version 3.01 of the PHP license, |
6 | that is bundled with this package in the file LICENSE, and is |
7 | available through the world-wide-web at the following url: |
8 | https://www.php.net/license/3_01.txt |
9 | If you did not receive a copy of the PHP license and are unable to |
10 | obtain it through the world-wide-web, please send a note to |
11 | license@php.net so we can mail you a copy immediately. |
12 +----------------------------------------------------------------------+
13 | Authors: Christian Stocker <chregu@php.net> |
14 | Rob Richards <rrichards@php.net> |
15 | Marcus Borger <helly@php.net> |
16 +----------------------------------------------------------------------+
17*/
18
19#ifndef PHP_DOM_H
20#define PHP_DOM_H
21
23#define phpext_dom_ptr &dom_module_entry
24
25#ifdef ZTS
26#include "TSRM.h"
27#endif
28
29#include <libxml/parser.h>
30#include <libxml/parserInternals.h>
31#include <libxml/tree.h>
32#include <libxml/uri.h>
33#include <libxml/xmlerror.h>
34#include <libxml/xinclude.h>
35#include <libxml/hash.h>
36#include <libxml/c14n.h>
37#ifdef LIBXML_HTML_ENABLED
38#include <libxml/HTMLparser.h>
39#include <libxml/HTMLtree.h>
40#endif
41#ifdef LIBXML_XPATH_ENABLED
42#include <libxml/xpath.h>
43#include <libxml/xpathInternals.h>
44#endif
45#ifdef LIBXML_XPTR_ENABLED
46#include <libxml/xpointer.h>
47#endif
48#ifdef PHP_WIN32
49#ifndef DOM_EXPORTS
50#define DOM_EXPORTS
51#endif
52#endif
53
54#include "xml_common.h"
56#include "xpath_callbacks.h"
57#include "zend_exceptions.h"
58#include "dom_ce.h"
59/* DOM API_VERSION, please bump it up, if you change anything in the API
60 therefore it's easier for the script-programmers to check, what's working how
61 Can be checked with phpversion("dom");
62*/
63#define DOM_API_VERSION "20031129"
64/* Define a custom type for iterating using an unused nodetype */
65#define DOM_NODESET XML_XINCLUDE_START
66
72
73static inline dom_xpath_object *php_xpath_obj_from_obj(zend_object *obj) {
74 return (dom_xpath_object*)((char*)(obj)
76}
77
78#define Z_XPATHOBJ_P(zv) php_xpath_obj_from_obj(Z_OBJ_P((zv)))
79
95
96typedef struct {
100 /* intern->index is only updated for FE_* opcodes, not for e.g. unpacking,
101 * yet we need to track the position of the node relative to the start. */
103 php_libxml_cache_tag cache_tag;
105
106typedef struct {
107 /* This may be a fake object that isn't actually in the children list of the parent.
108 * This is because some namespace declaration nodes aren't stored on the parent in libxml2, so we have to fake it.
109 * We could use a zval for this, but since this is always going to be an object let's save space... */
113
120
123
124static inline dom_object_namespace_node *php_dom_namespace_node_obj_from_obj(zend_object *obj) {
125 return (dom_object_namespace_node*)((char*)(obj) - XtOffsetOf(dom_object_namespace_node, dom.std));
126}
127
128#include "domexception.h"
129
130#define DOM_HTML_NO_DEFAULT_NS (1U << 31)
131
133dom_doc_propsptr dom_get_doc_props(php_libxml_ref_obj *document);
134libxml_doc_props const* dom_get_doc_props_read_only(const php_libxml_ref_obj *document);
137#ifdef LIBXML_XPATH_ENABLED
138zend_object *dom_xpath_objects_new(zend_class_entry *class_type);
139#endif
140bool dom_get_strict_error(php_libxml_ref_obj *document);
141void node_list_unlink(xmlNodePtr node);
142int dom_check_qname(char *qname, char **localname, char **prefix, int uri_len, int name_len);
143xmlNsPtr dom_get_ns(xmlNodePtr node, char *uri, int *errorcode, char *prefix);
144xmlNsPtr dom_get_ns_unchecked(xmlNodePtr nodep, char *uri, char *prefix);
145void dom_reconcile_ns(xmlDocPtr doc, xmlNodePtr nodep);
146void dom_reconcile_ns_list(xmlDocPtr doc, xmlNodePtr nodep, xmlNodePtr last);
147xmlNsPtr dom_get_nsdecl(xmlNode *node, xmlChar *localName);
148void php_dom_normalize_legacy(xmlNodePtr nodep);
149void php_dom_normalize_modern(xmlNodePtr nodep);
150xmlNode *dom_get_elements_by_tag_name_ns_raw(xmlNodePtr basep, xmlNodePtr nodep, xmlChar *ns, xmlChar *local, xmlChar *local_lower, zend_long *cur, zend_long index);
152int dom_hierarchy(xmlNodePtr parent, xmlNodePtr child);
153bool dom_has_feature(zend_string *feature, zend_string *version);
154int dom_node_is_read_only(const xmlNode *node);
155bool dom_node_children_valid(const xmlNode *node);
157void dom_namednode_iter(dom_object *basenode, int ntype, dom_object *intern, xmlHashTablePtr ht, const char *local, size_t local_len, const char *ns, size_t ns_len);
158xmlNodePtr create_notation(const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID);
161void dom_set_doc_classmap(php_libxml_ref_obj *document, zend_class_entry *basece, zend_class_entry *ce);
162xmlNodePtr php_dom_create_fake_namespace_decl(xmlNodePtr nodep, xmlNsPtr original, zval *return_value, dom_object *parent_intern);
163void php_dom_get_content_into_zval(const xmlNode *nodep, zval *target, bool default_is_null);
164zend_string *dom_node_concatenated_name_helper(size_t name_len, const char *name, size_t prefix_len, const char *prefix);
165zend_string *dom_node_get_node_name_attribute_or_element(const xmlNode *nodep, bool uppercase);
166bool php_dom_is_node_connected(const xmlNode *node);
167bool php_dom_adopt_node(xmlNodePtr nodep, dom_object *dom_object_new_document, xmlDocPtr new_document);
168xmlNsPtr dom_get_ns_resolve_prefix_conflict(xmlNodePtr tree, const char *uri);
169int dom_validate_and_extract(const zend_string *namespace, const zend_string *qname, xmlChar **localName, xmlChar **prefix);
170bool dom_match_qualified_name_according_to_spec(const xmlChar *qname, const xmlNode *nodep);
171bool php_dom_has_sibling_following_node(xmlNodePtr node, xmlElementType type);
172bool php_dom_has_sibling_preceding_node(xmlNodePtr node, xmlElementType type);
173bool php_dom_has_child_of_type(xmlNodePtr node, xmlElementType type);
174void php_dom_update_document_after_clone(dom_object *original, xmlNodePtr original_node, dom_object *clone, xmlNodePtr cloned_node);
175xmlAttrPtr php_dom_get_attribute_node(xmlNodePtr elem, const xmlChar *name, size_t name_len);
176xmlChar *php_dom_libxml_fix_file_path(xmlChar *path);
177void dom_document_convert_to_modern(php_libxml_ref_obj *document, xmlDocPtr lxml_doc);
180xmlEntityPtr dom_entity_reference_fetch_and_sync_declaration(xmlNodePtr reference);
181void dom_set_xml_class(php_libxml_ref_obj *document);
182const char *dom_locate_a_namespace(const xmlNode *node, const zend_string *prefix);
184bool dom_compare_value(const xmlAttr *attr, const xmlChar *value);
185void dom_attr_value_will_change(dom_object *obj, xmlAttrPtr attrp);
187xmlNodePtr dom_clone_node(php_dom_libxml_ns_mapper *ns_mapper, xmlNodePtr node, xmlDocPtr doc, bool recursive);
188void dom_set_document_ref_pointers(xmlNodePtr node, php_libxml_ref_obj *document);
189void dom_set_document_ref_pointers_attr(xmlAttrPtr attr, php_libxml_ref_obj *document);
190
195
196#define DOM_DOCUMENT_MALFORMED ((xmlDocPtr) -1)
197
198xmlDocPtr dom_document_parser(zval *id, dom_load_mode mode, const char *source, size_t source_len, size_t options, xmlCharEncodingHandlerPtr encoding);
199
200/* parentnode */
201void dom_parent_node_prepend(dom_object *context, zval *nodes, uint32_t nodesc);
202void dom_parent_node_append(dom_object *context, zval *nodes, uint32_t nodesc);
203void dom_parent_node_after(dom_object *context, zval *nodes, uint32_t nodesc);
204void dom_parent_node_before(dom_object *context, zval *nodes, uint32_t nodesc);
207void dom_child_replace_with(dom_object *context, zval *nodes, uint32_t nodesc);
208void dom_remove_all_children(xmlNodePtr nodep);
209bool php_dom_fragment_insertion_hierarchy_check_pre_insertion(xmlNodePtr parent, xmlNodePtr node, xmlNodePtr child);
210bool php_dom_fragment_insertion_hierarchy_check_replace(xmlNodePtr parent, xmlNodePtr node, xmlNodePtr child);
211void php_dom_node_append(php_libxml_ref_obj *document, xmlNodePtr node, xmlNodePtr parent);
212bool php_dom_pre_insert(php_libxml_ref_obj *document, xmlNodePtr node, xmlNodePtr parent, xmlNodePtr insertion_point);
214void dom_parent_node_query_selector(xmlNodePtr thisp, dom_object *intern, zval *return_value, const zend_string *selectors_str);
215void dom_parent_node_query_selector_all(xmlNodePtr thisp, dom_object *intern, zval *return_value, const zend_string *selectors_str);
216void dom_element_matches(xmlNodePtr thisp, dom_object *intern, zval *return_value, const zend_string *selectors_str);
217void dom_element_closest(xmlNodePtr thisp, dom_object *intern, zval *return_value, const zend_string *selectors_str);
218
219/* nodemap and nodelist APIs */
220xmlNodePtr php_dom_named_node_map_get_named_item(dom_nnodemap_object *objmap, const zend_string *named, bool may_transform);
225xmlNodePtr dom_nodelist_iter_start_first_child(xmlNodePtr nodep);
226
227#define DOM_GET_INTERN(__id, __intern) { \
228 __intern = Z_DOMOBJ_P(__id); \
229 if (UNEXPECTED(__intern->ptr == NULL)) { \
230 zend_throw_error(NULL, "Couldn't fetch %s", ZSTR_VAL(__intern->std.ce->name));\
231 RETURN_THROWS();\
232 } \
233}
234
235#define DOM_GET_THIS_INTERN(__intern) DOM_GET_INTERN(ZEND_THIS, __intern)
236
237#define DOM_GET_OBJ(__ptr, __id, __prtype, __intern) { \
238 DOM_GET_INTERN(__id, __intern); \
239 __ptr = (__prtype)((php_libxml_node_ptr *)__intern->ptr)->node; \
240}
241
242static zend_always_inline bool php_dom_is_cache_tag_stale_from_doc_ptr(const php_libxml_cache_tag *cache_tag, const php_libxml_ref_obj *doc_ptr)
243{
244 ZEND_ASSERT(doc_ptr != NULL);
245 return php_libxml_is_cache_tag_stale(cache_tag, &doc_ptr->cache_tag);
246}
247
248static zend_always_inline bool php_dom_is_cache_tag_stale_from_node(const php_libxml_cache_tag *cache_tag, const xmlNode *node)
249{
250 ZEND_ASSERT(node != NULL);
251 php_libxml_node_ptr *_private = node->_private;
252 if (!_private) {
253 return true;
254 }
255 php_libxml_node_object *object_private = _private->_private;
256 if (!object_private || !object_private->document) {
257 return true;
258 }
259 return php_dom_is_cache_tag_stale_from_doc_ptr(cache_tag, object_private->document);
260}
261
262static zend_always_inline void php_dom_mark_cache_tag_up_to_date_from_node(php_libxml_cache_tag *cache_tag, const xmlNode *node)
263{
264 ZEND_ASSERT(cache_tag != NULL);
265 php_libxml_node_ptr *_private = node->_private;
266 if (_private) {
267 php_libxml_node_object *object_private = _private->_private;
268 if (object_private->document) {
269 cache_tag->modification_nr = object_private->document->cache_tag.modification_nr;
270 }
271 }
272}
273
274static zend_always_inline void php_dom_mark_cache_tag_up_to_date_from_doc_ref(php_libxml_cache_tag *cache_tag, const php_libxml_ref_obj *document)
275{
276 ZEND_ASSERT(cache_tag != NULL);
277 ZEND_ASSERT(document != NULL);
278 cache_tag->modification_nr = document->cache_tag.modification_nr;
279}
280
281static zend_always_inline bool php_dom_follow_spec_node(const xmlNode *node)
282{
283 ZEND_ASSERT(node != NULL);
284 php_libxml_node_ptr *_private = node->_private;
285 if (_private) {
286 php_libxml_node_object *object_private = _private->_private;
287 if (object_private->document) {
288 return php_dom_follow_spec_doc_ref(object_private->document);
289 }
290 }
291 return false;
292}
293
294/* Returns the first child of a container node (e.g. elements, fragments, documents, ...). */
295static zend_always_inline xmlNodePtr php_dom_first_child_of_container_node(xmlNodePtr parent)
296{
297 if (parent->type == XML_DOCUMENT_NODE || parent->type == XML_HTML_DOCUMENT_NODE) {
298 return xmlDocGetRootElement((xmlDoc *) parent);
299 } else {
300 return parent->children;
301 }
302}
303
304static zend_always_inline const xmlChar *php_dom_get_content_or_empty(const xmlNode *node)
305{
306 return node->content ? node->content : BAD_CAST "";
307}
308
309#define PHP_DOM_DEPRECATED_PROPERTY(message) do { \
310 if (EXPECTED(!DOM_G(suppress_warnings))) {\
311 zend_error(E_DEPRECATED, message); \
312 if (UNEXPECTED(EG(exception))) { \
313 return FAILURE; \
314 } \
315 } \
316} while (0)
317
321
323
324#define DOM_G(v) ZEND_MODULE_GLOBALS_ACCESSOR(dom, v)
325
329
330#endif /* PHP_DOM_H */
zend_ffi_type * type
Definition ffi.c:3812
new_type attr
Definition ffi.c:4364
HashTable * ht
Definition ffi.c:4838
char * mode
#define NULL
Definition gdcache.h:45
#define prefix
#define PHP_MSHUTDOWN_FUNCTION
Definition php.h:401
#define PHP_MINIT_FUNCTION
Definition php.h:400
#define PHP_MINFO_FUNCTION
Definition php.h:404
void dom_attr_value_will_change(dom_object *obj, xmlAttrPtr attrp)
xmlEntityPtr dom_entity_reference_fetch_and_sync_declaration(xmlNodePtr reference)
xmlNodePtr php_dom_named_node_map_get_named_item(dom_nnodemap_object *objmap, const zend_string *named, bool may_transform)
void php_dom_normalize_modern(xmlNodePtr nodep)
void dom_element_closest(xmlNodePtr thisp, dom_object *intern, zval *return_value, const zend_string *selectors_str)
dom_object * php_dom_instantiate_object_helper(zval *return_value, zend_class_entry *ce, xmlNodePtr obj, dom_object *parent)
dom_load_mode
Definition php_dom.h:191
@ DOM_LOAD_FILE
Definition php_dom.h:193
@ DOM_LOAD_STRING
Definition php_dom.h:192
void dom_parent_node_query_selector(xmlNodePtr thisp, dom_object *intern, zval *return_value, const zend_string *selectors_str)
xmlAttrPtr php_dom_get_attribute_node(xmlNodePtr elem, const xmlChar *name, size_t name_len)
void dom_parent_node_after(dom_object *context, zval *nodes, uint32_t nodesc)
zend_object_iterator * php_dom_get_iterator(zend_class_entry *ce, zval *object, int by_ref)
void php_dom_create_implementation(zval *retval, bool modern)
xmlNsPtr dom_get_nsdecl(xmlNode *node, xmlChar *localName)
bool dom_node_children_valid(const xmlNode *node)
void dom_parent_node_replace_children(dom_object *context, zval *nodes, uint32_t nodesc)
xmlNsPtr dom_get_ns(xmlNodePtr node, char *uri, int *errorcode, char *prefix)
bool php_dom_pre_insert_is_parent_invalid(xmlNodePtr parent)
xmlDocPtr php_dom_create_html_doc(void)
int dom_hierarchy(xmlNodePtr parent, xmlNodePtr child)
void php_dom_named_node_map_get_named_item_into_zval(dom_nnodemap_object *objmap, const zend_string *named, zval *return_value)
void dom_parent_node_query_selector_all(xmlNodePtr thisp, dom_object *intern, zval *return_value, const zend_string *selectors_str)
bool dom_has_feature(zend_string *feature, zend_string *version)
void dom_set_document_ref_pointers(xmlNodePtr node, php_libxml_ref_obj *document)
zend_object * dom_objects_new(zend_class_entry *class_type)
void dom_set_xml_class(php_libxml_ref_obj *document)
bool php_dom_fragment_insertion_hierarchy_check_pre_insertion(xmlNodePtr parent, xmlNodePtr node, xmlNodePtr child)
xmlDocPtr dom_document_parser(zval *id, dom_load_mode mode, const char *source, size_t source_len, size_t options, xmlCharEncodingHandlerPtr encoding)
void php_dom_node_append(php_libxml_ref_obj *document, xmlNodePtr node, xmlNodePtr parent)
void dom_reconcile_ns(xmlDocPtr doc, xmlNodePtr nodep)
int dom_check_qname(char *qname, char **localname, char **prefix, int uri_len, int name_len)
bool suppress_warnings
Definition php_dom.h:319
bool php_dom_adopt_node(xmlNodePtr nodep, dom_object *dom_object_new_document, xmlDocPtr new_document)
void dom_document_convert_to_modern(php_libxml_ref_obj *document, xmlDocPtr lxml_doc)
bool dom_compare_value(const xmlAttr *attr, const xmlChar *value)
xmlNodePtr dom_clone_node(php_dom_libxml_ns_mapper *ns_mapper, xmlNodePtr node, xmlDocPtr doc, bool recursive)
void node_list_unlink(xmlNodePtr node)
xmlNode * php_dom_libxml_hash_iter(dom_nnodemap_object *objmap, int index)
bool dom_match_qualified_name_according_to_spec(const xmlChar *qname, const xmlNode *nodep)
int php_dom_get_namednodemap_length(dom_object *obj)
xmlNsPtr dom_get_ns_resolve_prefix_conflict(xmlNodePtr tree, const char *uri)
bool dom_get_strict_error(php_libxml_ref_obj *document)
xmlNsPtr dom_get_ns_unchecked(xmlNodePtr nodep, char *uri, char *prefix)
xmlNodePtr create_notation(const xmlChar *name, const xmlChar *ExternalID, const xmlChar *SystemID)
xmlNodePtr php_dom_create_fake_namespace_decl(xmlNodePtr nodep, xmlNsPtr original, zval *return_value, dom_object *parent_intern)
void dom_child_replace_with(dom_object *context, zval *nodes, uint32_t nodesc)
xmlNode * dom_get_elements_by_tag_name_ns_raw(xmlNodePtr basep, xmlNodePtr nodep, xmlChar *ns, xmlChar *local, xmlChar *local_lower, zend_long *cur, zend_long index)
bool php_dom_pre_insert(php_libxml_ref_obj *document, xmlNodePtr node, xmlNodePtr parent, xmlNodePtr insertion_point)
void php_dom_update_document_after_clone(dom_object *original, xmlNodePtr original_node, dom_object *clone, xmlNodePtr cloned_node)
void dom_objects_free_storage(zend_object *object)
void dom_parent_node_before(dom_object *context, zval *nodes, uint32_t nodesc)
bool php_dom_create_nullable_object(xmlNodePtr obj, zval *return_value, dom_object *domobj)
void php_dom_normalize_legacy(xmlNodePtr nodep)
void dom_parent_node_append(dom_object *context, zval *nodes, uint32_t nodesc)
void dom_set_document_ref_pointers_attr(xmlAttrPtr attr, php_libxml_ref_obj *document)
void dom_element_matches(xmlNodePtr thisp, dom_object *intern, zval *return_value, const zend_string *selectors_str)
bool php_dom_has_sibling_following_node(xmlNodePtr node, xmlElementType type)
void php_dom_get_content_into_zval(const xmlNode *nodep, zval *target, bool default_is_null)
int dom_validate_and_extract(const zend_string *namespace, const zend_string *qname, xmlChar **localName, xmlChar **prefix)
void dom_child_node_remove(dom_object *context)
void dom_parent_node_prepend(dom_object *context, zval *nodes, uint32_t nodesc)
dom_doc_propsptr dom_get_doc_props(php_libxml_ref_obj *document)
bool php_dom_has_sibling_preceding_node(xmlNodePtr node, xmlElementType type)
void dom_namednode_iter(dom_object *basenode, int ntype, dom_object *intern, xmlHashTablePtr ht, const char *local, size_t local_len, const char *ns, size_t ns_len)
void php_dom_named_node_map_get_item_into_zval(dom_nnodemap_object *objmap, zend_long index, zval *return_value)
bool php_dom_has_child_of_type(xmlNodePtr node, xmlElementType type)
zend_string * dom_node_concatenated_name_helper(size_t name_len, const char *name, size_t prefix_len, const char *prefix)
xmlNodePtr dom_nodelist_iter_start_first_child(xmlNodePtr nodep)
void dom_set_doc_classmap(php_libxml_ref_obj *document, zend_class_entry *basece, zend_class_entry *ce)
void php_dom_create_iterator(zval *return_value, dom_iterator_type iterator_type, bool modern)
const char * dom_locate_a_namespace(const xmlNode *node, const zend_string *prefix)
libxml_doc_props const * dom_get_doc_props_read_only(const php_libxml_ref_obj *document)
int dom_node_is_read_only(const xmlNode *node)
zend_string * dom_node_get_node_name_attribute_or_element(const xmlNode *nodep, bool uppercase)
void dom_reconcile_ns_list(xmlDocPtr doc, xmlNodePtr nodep, xmlNodePtr last)
void dom_mark_namespaces_as_attributes_too(php_dom_libxml_ns_mapper *ns_mapper, xmlDocPtr doc)
zend_object * dom_nnodemap_objects_new(zend_class_entry *class_type)
zend_module_entry dom_module_entry
xmlNodePtr php_dom_named_node_map_get_item(dom_nnodemap_object *objmap, zend_long index)
xmlChar * php_dom_libxml_fix_file_path(xmlChar *path)
bool php_dom_is_node_connected(const xmlNode *node)
dom_iterator_type
Definition php_dom.h:114
@ DOM_DTD_NAMEDNODEMAP
Definition php_dom.h:117
@ DOM_NODELIST
Definition php_dom.h:115
@ DOM_NAMEDNODEMAP
Definition php_dom.h:116
@ DOM_HTMLCOLLECTION
Definition php_dom.h:118
void dom_remove_all_children(xmlNodePtr nodep)
bool php_dom_fragment_insertion_hierarchy_check_replace(xmlNodePtr parent, xmlNodePtr node, xmlNodePtr child)
const XML_HTML_DOCUMENT_NODE
const XML_DOCUMENT_NODE
PHP_JSON_API size_t int options
Definition php_json.h:102
xmlCharEncodingHandlerPtr encoding
Definition php_soap.h:170
Definition dce.c:49
zend_long cached_obj_index
Definition php_dom.h:90
dom_object * baseobj
Definition php_dom.h:81
xmlHashTable * ht
Definition php_dom.h:85
dom_object * cached_obj
Definition php_dom.h:89
php_libxml_cache_tag cache_tag
Definition php_dom.h:88
xmlChar * local_lower
Definition php_dom.h:86
xmlDictPtr dict
Definition php_dom.h:91
xmlChar * local
Definition php_dom.h:86
dom_object * parent_intern
Definition php_dom.h:110
bool register_node_ns
Definition php_dom.h:69
dom_object dom
Definition php_dom.h:70
php_dom_xpath_callbacks xpath_callbacks
Definition php_dom.h:68
zend_ulong index
Definition php_dom.h:102
HashPosition pos
Definition php_dom.h:99
php_libxml_cache_tag cache_tag
Definition php_dom.h:103
zend_object_iterator intern
Definition php_dom.h:97
struct _dom_object dom_object
libxml_doc_props * dom_doc_propsptr
Definition xml_common.h:23
#define ZEND_END_MODULE_GLOBALS(module_name)
Definition zend_API.h:248
#define ZEND_EXTERN_MODULE_GLOBALS(module_name)
Definition zend_API.h:270
#define ZEND_BEGIN_MODULE_GLOBALS(module_name)
Definition zend_API.h:246
struct _zval_struct zval
struct _zend_object_iterator zend_object_iterator
int32_t zend_long
Definition zend_long.h:42
uint32_t zend_ulong
Definition zend_long.h:43
struct _zend_string zend_string
struct _zend_module_entry zend_module_entry
int last
#define zend_always_inline
#define XtOffsetOf(s_type, field)
#define ZEND_ASSERT(c)
struct _zend_class_entry zend_class_entry
struct _zend_object zend_object
uint32_t HashPosition
Definition zend_types.h:548
zval retval
zval * return_value
zend_string * name
value