Don't check for LIBXML_PARSEHUGE presence
authorMax Semenik <maxsem.wiki@gmail.com>
Tue, 8 Jan 2019 03:32:39 +0000 (19:32 -0800)
committerMax Semenik <maxsem.wiki@gmail.com>
Tue, 8 Jan 2019 03:32:39 +0000 (19:32 -0800)
It's been present since PHP 5.3.2.

Change-Id: I23a3c50c10e984abe6ff214fbf504ab6f6be763c

includes/export/BaseDump.php

index 6a2d3bf..b0516b6 100644 (file)
@@ -52,11 +52,7 @@ class BaseDump {
                $this->infiles = explode( ';', $infile );
                $this->reader = new XMLReader();
                $infile = array_shift( $this->infiles );
-               if ( defined( 'LIBXML_PARSEHUGE' ) ) {
-                       $this->reader->open( $infile, null, LIBXML_PARSEHUGE );
-               } else {
-                       $this->reader->open( $infile );
-               }
+               $this->reader->open( $infile, null, LIBXML_PARSEHUGE );
        }
 
        /**