@@ -442,7 +442,6 @@ static void php_xmlreader_free_prop_handler(zval *el) /* {{{ */ {
442442 pefree (Z_PTR_P (el ), 1 );
443443} /* }}} */
444444
445- #if LIBXML_VERSION >= 20620
446445/* {{{ php_xmlreader_no_arg_string */
447446static void php_xmlreader_no_arg_string (INTERNAL_FUNCTION_PARAMETERS , xmlreader_read_char_t internal_function ) {
448447 zval * id ;
@@ -464,7 +463,6 @@ static void php_xmlreader_no_arg_string(INTERNAL_FUNCTION_PARAMETERS, xmlreader_
464463 }
465464}
466465/* }}} */
467- #endif
468466
469467/* {{{ php_xmlreader_set_relaxng_schema */
470468static void php_xmlreader_set_relaxng_schema (INTERNAL_FUNCTION_PARAMETERS , int type ) {
@@ -810,12 +808,6 @@ PHP_METHOD(xmlreader, next)
810808 id = getThis ();
811809 intern = Z_XMLREADER_P (id );
812810 if (intern != NULL && intern -> ptr != NULL ) {
813- #if LIBXML_VERSION <= 20617
814- /* Bug in libxml prevents a next in certain cases when positioned on end of element */
815- if (xmlTextReaderNodeType (intern -> ptr ) == XML_READER_TYPE_END_ELEMENT ) {
816- retval = xmlTextReaderRead (intern -> ptr );
817- } else
818- #endif
819811 retval = xmlTextReaderNext (intern -> ptr );
820812 while (name != NULL && retval == 1 ) {
821813 if (xmlStrEqual (xmlTextReaderConstLocalName (intern -> ptr ), (xmlChar * )name )) {
@@ -899,7 +891,6 @@ PHP_METHOD(xmlreader, resetState)
899891}
900892*/
901893
902- #if LIBXML_VERSION >= 20620
903894/* {{{ proto string XMLReader::readInnerXml()
904895Reads the contents of the current node, including child nodes and markup. */
905896PHP_METHOD (xmlreader , readInnerXml )
@@ -965,7 +956,6 @@ PHP_METHOD(xmlreader, setSchema)
965956#endif
966957}
967958/* }}} */
968- #endif
969959
970960/* {{{ proto bool XMLReader::setParserProperty(int property, bool value)
971961Sets parser property (one of the parser option constants).
@@ -1071,9 +1061,7 @@ PHP_METHOD(xmlreader, XML)
10711061 reader = xmlNewTextReader (inputbfr , uri );
10721062
10731063 if (reader != NULL ) {
1074- #if LIBXML_VERSION >= 20628
10751064 ret = xmlTextReaderSetup (reader , NULL , uri , encoding , options );
1076- #endif
10771065 if (ret == 0 ) {
10781066 if (id == NULL ) {
10791067 object_init_ex (return_value , xmlreader_class_entry );
@@ -1271,12 +1259,10 @@ static const zend_function_entry xmlreader_functions[] /* {{{ */ = {
12711259 PHP_ME (xmlreader , open , arginfo_xmlreader_open , ZEND_ACC_PUBLIC |ZEND_ACC_ALLOW_STATIC )
12721260 PHP_ME (xmlreader , read , arginfo_xmlreader_read , ZEND_ACC_PUBLIC )
12731261 PHP_ME (xmlreader , next , arginfo_xmlreader_next , ZEND_ACC_PUBLIC )
1274- #if LIBXML_VERSION >= 20620
12751262 PHP_ME (xmlreader , readInnerXml , arginfo_xmlreader_readInnerXml , ZEND_ACC_PUBLIC )
12761263 PHP_ME (xmlreader , readOuterXml , arginfo_xmlreader_readOuterXml , ZEND_ACC_PUBLIC )
12771264 PHP_ME (xmlreader , readString , arginfo_xmlreader_readString , ZEND_ACC_PUBLIC )
12781265 PHP_ME (xmlreader , setSchema , arginfo_xmlreader_setSchema , ZEND_ACC_PUBLIC )
1279- #endif
12801266/* Not Yet Implemented though defined in libxml as of 2.6.9dev
12811267 PHP_ME(xmlreader, resetState, NULL, ZEND_ACC_PUBLIC)
12821268*/
0 commit comments