summaryrefslogtreecommitdiff
path: root/ext/dom/php_dom.h
diff options
context:
space:
mode:
authorRob Richards <rrichards@php.net>2008-01-25 16:13:04 +0000
committerRob Richards <rrichards@php.net>2008-01-25 16:13:04 +0000
commit3e69124430807536b554a1afab52bed4233ad01d (patch)
treeea0dd303c7929f60db4388d24cd8e1e8bdeb0367 /ext/dom/php_dom.h
parentb65adbb4fb6f1e8d37cba31ffdfa64c974bb0381 (diff)
downloadphp-git-3e69124430807536b554a1afab52bed4233ad01d.tar.gz
backport functionality to call user functions within XPath
add test
Diffstat (limited to 'ext/dom/php_dom.h')
-rw-r--r--ext/dom/php_dom.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/ext/dom/php_dom.h b/ext/dom/php_dom.h
index 00c3dd3422..5408edbfa2 100644
--- a/ext/dom/php_dom.h
+++ b/ext/dom/php_dom.h
@@ -67,6 +67,17 @@ extern zend_module_entry dom_module_entry;
/* Define a custom type for iterating using an unused nodetype */
#define DOM_NODESET XML_XINCLUDE_START
+typedef struct _dom_xpath_object {
+ zend_object std;
+ void *ptr;
+ php_libxml_ref_obj *document;
+ HashTable *prop_handler;
+ zend_object_handle handle;
+ int registerPhpFunctions;
+ HashTable *registered_phpfunctions;
+ HashTable *node_list;
+} dom_xpath_object;
+
typedef struct _dom_nnodemap_object {
dom_object *baseobj;
int nodetype;