Skip to content

Document PHP 7.1 support #2314

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ With PHPWord, you can create OOXML, ODF, or RTF documents dynamically using your

PHPWord requires the following:

- PHP 7.4+
- PHP 7.1+
- [XML Parser extension](http://www.php.net/manual/en/xml.installation.php)
- [Laminas Escaper component](https://docs.laminas.dev/laminas-escaper/intro/)
- [Zip extension](http://php.net/manual/en/book.zip.php) (optional, used to write OOXML and ODF)
Expand Down
2 changes: 1 addition & 1 deletion docs/installing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Requirements
Mandatory:

- composer
- PHP 7.4+
- PHP 7.1+
- `XML Parser <http://www.php.net/manual/en/xml.installation.php>`__ extension

Optional:
Expand Down
2 changes: 1 addition & 1 deletion samples/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
use PhpOffice\PhpWord\Settings;

$requirements = [
'php' => ['PHP 7.4', version_compare(PHP_VERSION, '7.4', '>=')],
'php' => ['PHP 7.1', version_compare(PHP_VERSION, '7.1', '>=')],
'xml' => ['PHP extension XML', extension_loaded('xml')],
'temp' => ['Temp folder "<code>' . Settings::getTempDir() . '</code>" is writable', is_writable(Settings::getTempDir())],
'zip' => ['PHP extension ZipArchive (optional)', extension_loaded('zip')],
Expand Down
10 changes: 0 additions & 10 deletions src/PhpWord/Reader/MsDoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,29 +39,21 @@ class MsDoc extends AbstractReader implements ReaderInterface

/**
* WordDocument Stream.
*
* @var
*/
private $dataWorkDocument;

/**
* 1Table Stream.
*
* @var
*/
private $data1Table;

/**
* Data Stream.
*
* @var
*/
private $dataData;

/**
* Object Pool Stream.
*
* @var
*/
private $dataObjectPool;

Expand Down Expand Up @@ -1513,8 +1505,6 @@ private function readRecordPlcfBteChpx(): void
}

/**
* @param $sprm
*
* @return stdClass
*/
private function readSprm($sprm)
Expand Down