PHPWord icon indicating copy to clipboard operation
PHPWord copied to clipboard

Drop PHP 5.3 support

Open Trainmaster opened this issue 7 years ago • 3 comments

This is:

  • [ ] a bug report
  • [x] a feature request
  • [ ] not a usage question (ask them on https://stackoverflow.com/questions/tagged/phpword)

Expected Behavior

PHPWord requires at least PHP 5.6. Maybe it would be good to use the same PHP requirements as in https://github.com/PHPOffice/PhpSpreadsheet/blob/develop/composer.json

What do you think? @troosan

Context

PHP 5.3 reached its EOL on 2014-08-14.

Trainmaster avatar Mar 06 '18 22:03 Trainmaster

Indeed, that's on the todo list. But first I want to address all the existing pull requests. Once that's done I'll drop 5.3 support.

troosan avatar Mar 07 '18 05:03 troosan

Some of the dependencies are throwing error at php 5.3.3 so, php 5.3 support is dropped really.

Parse error: syntax error, unexpected '[' in .../public_html/contract/vendor/zendframework/zend-stdlib/src/StringUtils.php on line 34

dragonattack avatar Mar 22 '18 10:03 dragonattack

@dragonattack It all depends with which PHP version you are running composer. If you run composer with PHP 5.3.3 it will load version 2.2.10, which should not give you this error

troosan avatar Mar 22 '18 20:03 troosan

This issue should be marked closed.

rasamassen avatar Sep 29 '25 04:09 rasamassen

Done in 1.0.0

Progi1984 avatar Oct 24 '25 19:10 Progi1984