delight-im / PHP-Cookie

Modern cookie management for PHP
MIT License
165 stars 48 forks source link

Tests can be run with PHP 5.3 #10

Closed LeSuisse closed 7 years ago

LeSuisse commented 7 years ago

Currently the tests can not launched due to this error: Parse error: syntax error, unexpected T_OBJECT_OPERATOR in tests/index.php on line 104

ocram commented 7 years ago

Thanks a lot for your feedback, for looking into this and for providing a fix!

Unfortunately, we don't want to support PHP 5.3 anymore, because we'll only ever support versions that still have official support which is not the case for PHP 5.3.

It does not make any sense to set up libraries that are to help you build secure applications while operating on an unsupported PHP version whose vulnerabilities won't get fixed any longer.

So the minimum PHP version for this library has now been updated: https://github.com/delight-im/PHP-Cookie/commit/365a0d478423e43cf3e5524e1680b3c9d550687f

Thanks again for pointing this out, and sorry for the project information that wasn't up-to-date, where we could have saved you the effort.