Index: trunk/phase3/includes/ImportXMLReader.php |
— | — | @@ -660,17 +660,17 @@ |
661 | 661 | $leave = false; |
662 | 662 | |
663 | 663 | while ( !$leave && !$this->mSource->atEnd() && |
664 | | - count($this->mBuffer) < $count ) { |
| 664 | + strlen($this->mBuffer) < $count ) { |
665 | 665 | $read = $this->mSource->readChunk(); |
666 | 666 | |
667 | | - if ( !count($read) ) { |
| 667 | + if ( !strlen($read) ) { |
668 | 668 | $leave = true; |
669 | 669 | } |
670 | 670 | |
671 | 671 | $this->mBuffer .= $read; |
672 | 672 | } |
673 | 673 | |
674 | | - if ( count($this->mBuffer) ) { |
| 674 | + if ( strlen($this->mBuffer) ) { |
675 | 675 | $return = substr( $this->mBuffer, 0, $count ); |
676 | 676 | $this->mBuffer = substr( $this->mBuffer, $count ); |
677 | 677 | } |