diff options
| author | Rob Richards <rrichards@php.net> | 2008-09-10 15:40:34 +0000 |
|---|---|---|
| committer | Rob Richards <rrichards@php.net> | 2008-09-10 15:40:34 +0000 |
| commit | 77494520a46c73a9372f092b938d708a908f7ccb (patch) | |
| tree | b9cd75a19408c88a7a47f75c19d53da6dff737d5 /ext/dom/documentfragment.c | |
| parent | 56ed148d6472ac101821688c3e68a00184ea87f5 (diff) | |
| download | php-git-77494520a46c73a9372f092b938d708a908f7ccb.tar.gz | |
MFH: fix bug #46029 (Segfault in DOMText when using with Reflection)
Diffstat (limited to 'ext/dom/documentfragment.c')
| -rw-r--r-- | ext/dom/documentfragment.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/dom/documentfragment.c b/ext/dom/documentfragment.c index fb509ad420..f6030fd47e 100644 --- a/ext/dom/documentfragment.c +++ b/ext/dom/documentfragment.c @@ -76,7 +76,7 @@ PHP_METHOD(domdocumentfragment, __construct) intern = (dom_object *)zend_object_store_get_object(id TSRMLS_CC); if (intern != NULL) { - oldnode = (xmlNodePtr)intern->ptr; + oldnode = dom_object_get_node(intern); if (oldnode != NULL) { php_libxml_node_free_resource(oldnode TSRMLS_CC); } |
