From 84ad53238f9adea95429d58d9975ae812c764feb Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Mon, 3 Aug 2015 13:02:08 +0200 Subject: [PATCH 1/2] Fixed "Class 'PhpOffice\Common\ZipArchive' not found in /src/Common/XMLReader.php on line 54" --- src/Common/XMLReader.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Common/XMLReader.php b/src/Common/XMLReader.php index 3eb7a34..421e87d 100644 --- a/src/Common/XMLReader.php +++ b/src/Common/XMLReader.php @@ -51,7 +51,7 @@ public function getDomFromZip($zipFile, $xmlFile) throw new \Exception('Cannot find archive file.'); } - $zip = new ZipArchive(); + $zip = new \ZipArchive(); $zip->open($zipFile); $content = $zip->getFromName($xmlFile); $zip->close(); From 0bcc9d804447d11595ff1d295f7a550066fbde44 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Mon, 3 Aug 2015 13:06:35 +0200 Subject: [PATCH 2/2] Fixed "Class 'PhpOffice\Common\ZipArchive' not found in /src/Common/XMLReader.php on line 54" --- CHANGELOG.md | 5 +++++ src/Common/XMLReader.php | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0b8da9b..b63fb31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,3 +18,8 @@ ### Features - Added XMLReader from PHPWord + +## 0.2.2 + +### BugFix +- Fixed "Class 'PhpOffice\Common\ZipArchive' not found in /src/Common/XMLReader.php on line 54" diff --git a/src/Common/XMLReader.php b/src/Common/XMLReader.php index 421e87d..3378447 100644 --- a/src/Common/XMLReader.php +++ b/src/Common/XMLReader.php @@ -186,4 +186,4 @@ public function elementExists($path, \DOMElement $contextNode = null) { return $this->getElements($path, $contextNode)->length > 0; } -} \ No newline at end of file +}