Index: trunk/phase3/includes/Import.php |
— | — | @@ -45,7 +45,12 @@ |
46 | 46 | |
47 | 47 | stream_wrapper_register( 'uploadsource', 'UploadSourceAdapter' ); |
48 | 48 | $id = UploadSourceAdapter::registerSource( $source ); |
49 | | - $this->reader->open( "uploadsource://$id" ); |
| 49 | + if (defined( 'LIBXML_PARSEHUGE' ) ) { |
| 50 | + $this->reader->open( "uploadsource://$id", null, LIBXML_PARSEHUGE ); |
| 51 | + } |
| 52 | + else { |
| 53 | + $this->reader->open( "uploadsource://$id" ); |
| 54 | + } |
50 | 55 | |
51 | 56 | // Default callbacks |
52 | 57 | $this->setRevisionCallback( array( $this, "importRevision" ) ); |
Index: trunk/phase3/maintenance/backupPrefetch.inc |
— | — | @@ -51,7 +51,12 @@ |
52 | 52 | $this->infiles = explode(';',$infile); |
53 | 53 | $this->reader = new XMLReader(); |
54 | 54 | $infile = array_shift($this->infiles); |
55 | | - $this->reader->open( $infile ); |
| 55 | + if (defined( 'LIBXML_PARSEHUGE' ) ) { |
| 56 | + $this->reader->open( $infile, null, LIBXML_PARSEHUGE ); |
| 57 | + } |
| 58 | + else { |
| 59 | + $this->reader->open( $infile ); |
| 60 | + } |
56 | 61 | } |
57 | 62 | |
58 | 63 | /** |