]> granicus.if.org Git - php/commitdiff
And simplexml doesn't need dom anymore to do the import
authorRasmus Lerdorf <rasmus@php.net>
Sat, 5 Nov 2005 22:37:18 +0000 (22:37 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Sat, 5 Nov 2005 22:37:18 +0000 (22:37 +0000)
ext/simplexml/simplexml.c

index 26675c8cff766a32a73ea181efa7c6934943805b..a1d374a44a6d84bb382f663ce7ed27463e23cbb5 100644 (file)
@@ -1597,7 +1597,6 @@ void *simplexml_export_node(zval *object TSRMLS_DC)
        return php_sxe_get_first_node(sxe, node TSRMLS_CC);     
 }
 
-#ifdef HAVE_DOM
 /* {{{ proto simplemxml_element simplexml_import_dom(domNode node [, string class_name])
    Get a simplexml_element object from dom to allow for processing */
 PHP_FUNCTION(simplexml_import_dom)
@@ -1650,14 +1649,11 @@ PHP_FUNCTION(simplexml_import_dom)
        }
 }
 /* }}} */
-#endif
 
 function_entry simplexml_functions[] = {
        PHP_FE(simplexml_load_file, NULL)
        PHP_FE(simplexml_load_string, NULL)
-#ifdef HAVE_DOM
        PHP_FE(simplexml_import_dom, NULL)
-#endif
        {NULL, NULL, NULL}
 };