php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
xml_common.h File Reference

Go to the source code of this file.

Data Structures

struct  _dom_object
 

Macros

#define Z_DOMOBJ_P(zv)
 
#define PHP_DOM_EXPORT
 
#define NODE_GET_OBJ(__ptr, __id, __prtype, __intern)
 
#define DOC_GET_OBJ(__ptr, __id, __prtype, __intern)
 
#define DOM_RET_OBJ(obj, domobject)
 
#define DOM_GET_THIS_OBJ(__ptr, __id, __prtype, __intern)
 

Typedefs

typedef libxml_doc_props * dom_doc_propsptr
 
typedef struct _dom_object dom_object
 

Functions

PHP_DOM_EXPORT dom_objectphp_dom_object_get_data (xmlNodePtr obj)
 
PHP_DOM_EXPORT bool php_dom_create_object (xmlNodePtr obj, zval *return_value, dom_object *domobj)
 
PHP_DOM_EXPORT xmlNodePtr dom_object_get_node (dom_object *obj)
 

Variables

PHP_DOM_EXPORT zend_class_entrydom_node_class_entry
 

Macro Definition Documentation

◆ DOC_GET_OBJ

#define DOC_GET_OBJ ( __ptr,
__id,
__prtype,
__intern )
Value:
{ \
__intern = Z_LIBXML_NODE_P(__id); \
if (EXPECTED(__intern->document != NULL)) { \
__ptr = (__prtype)__intern->document->ptr); \
} \
}
#define NULL
Definition gdcache.h:45
#define EXPECTED(condition)

Definition at line 69 of file xml_common.h.

◆ DOM_GET_THIS_OBJ

#define DOM_GET_THIS_OBJ ( __ptr,
__id,
__prtype,
__intern )
Value:
__id = ZEND_THIS; \
DOM_GET_OBJ(__ptr, __id, __prtype, __intern);
#define ZEND_THIS
Definition zend_API.h:523

Definition at line 79 of file xml_common.h.

◆ DOM_RET_OBJ

#define DOM_RET_OBJ ( obj,
domobject )
Value:
PHP_DOM_EXPORT bool php_dom_create_object(xmlNodePtr obj, zval *return_value, dom_object *domobj)
zval * return_value

Definition at line 76 of file xml_common.h.

◆ NODE_GET_OBJ

#define NODE_GET_OBJ ( __ptr,
__id,
__prtype,
__intern )
Value:
{ \
__intern = Z_LIBXML_NODE_P(__id); \
if (UNEXPECTED(__intern->node == NULL)) { \
php_error_docref(NULL, E_WARNING, "Couldn't fetch %s", \
ZSTR_VAL(Z_OBJCE_P(__zv)->name));\
RETURN_NULL();\
} \
__ptr = (__prtype)__intern->node->node; \
}
#define E_WARNING
Definition zend_errors.h:24
#define UNEXPECTED(condition)
#define ZSTR_VAL(zstr)
Definition zend_string.h:68
#define Z_OBJCE_P(zval_p)
zend_string * name

Definition at line 59 of file xml_common.h.

◆ PHP_DOM_EXPORT

#define PHP_DOM_EXPORT

Definition at line 51 of file xml_common.h.

◆ Z_DOMOBJ_P

#define Z_DOMOBJ_P ( zv)
Value:
php_dom_obj_from_obj(Z_OBJ_P((zv)))
zval * zv
Definition ffi.c:3975
#define Z_OBJ_P(zval_p)
Definition zend_types.h:990

Definition at line 36 of file xml_common.h.

Typedef Documentation

◆ dom_doc_propsptr

typedef libxml_doc_props* dom_doc_propsptr

Definition at line 23 of file xml_common.h.

◆ dom_object

typedef struct _dom_object dom_object

Function Documentation

◆ dom_object_get_node()

PHP_DOM_EXPORT xmlNodePtr dom_object_get_node ( dom_object * obj)

◆ php_dom_create_object()

PHP_DOM_EXPORT bool php_dom_create_object ( xmlNodePtr obj,
zval * return_value,
dom_object * domobj )

◆ php_dom_object_get_data()

PHP_DOM_EXPORT dom_object * php_dom_object_get_data ( xmlNodePtr obj)

Variable Documentation

◆ dom_node_class_entry

PHP_DOM_EXPORT zend_class_entry* dom_node_class_entry
extern