]> granicus.if.org Git - php/commitdiff
nuke tests for libxml2 version - will always be > 2.6.0
authorRob Richards <rrichards@php.net>
Wed, 1 Mar 2006 15:37:45 +0000 (15:37 +0000)
committerRob Richards <rrichards@php.net>
Wed, 1 Mar 2006 15:37:45 +0000 (15:37 +0000)
ext/simplexml/simplexml.c

index e8150eaf98e4c19187812847c59a71b09ccf3eb7..8a321ce0baaaf2f84cd556e37413c2613e073e53 100644 (file)
@@ -1685,11 +1685,7 @@ PHP_FUNCTION(simplexml_load_file)
                return;
        }
 
-#if LIBXML_VERSION >= 20600
        docp = xmlReadFile(filename, NULL, options);
-#else
-       docp = xmlParseFile(filename);
-#endif
 
        if (! docp) {
                RETURN_FALSE;
@@ -1729,11 +1725,7 @@ PHP_FUNCTION(simplexml_load_string)
                return;
        }
 
-#if LIBXML_VERSION >= 20600
        docp = xmlReadMemory(data, data_len, NULL, NULL, options);
-#else
-       docp = xmlParseMemory(data, data_len);
-#endif
 
        if (! docp) {
                RETURN_FALSE;
@@ -1775,11 +1767,9 @@ SXE_METHOD(__construct)
        }
 
        php_std_error_handling();
-#if LIBXML_VERSION >= 20600
+
        docp = is_url ? xmlReadFile(data, NULL, options) : xmlReadMemory(data, data_len, NULL, NULL, options);
-#else
-       docp = is_url ? xmlParseFile(data) : xmlParseMemory(data, data_len);
-#endif
+
        if (!docp) {
                ((php_libxml_node_object *)sxe)->document = NULL;
                zend_throw_exception(zend_exception_get_default(), "String could not be parsed as XML", 0 TSRMLS_CC);