Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Add PHP 7.1 & 7.2 support, drop PHP 5.5 & HHVM, add PHPUnit 6 support #78

Merged
merged 58 commits into from
Jun 19, 2017

Conversation

Slamdunk
Copy link
Contributor

@Slamdunk Slamdunk commented Jun 9, 2017

  • Add PHP 7.1 support (session.* ini settings)
    1. Deprecate session.entropy_file
    2. Deprecate session.entropy_length
    3. Deprecate session.hash_function
    4. Deprecate session.hash_bits_per_character
    5. Support session.sid_length
    6. Support session.sid_bits_per_character
  • Add partial PHP 7.2 support
    1. Fix valid error Fatal error: Declaration of Zend\Session\AbstractContainer::offsetGet($key) must be compatible with & Zend\Stdlib\ArrayObject::offsetGet($key) in ./zend-session/src/AbstractContainer.php on line 27
    2. Don't fix any other error until GA release
  • Drop HHVM support
  • Drop PHP 5.5 support
  • Add PHPUnit 6 support

weierophinney and others added 22 commits July 5, 2016 13:33
It has been confirmed that the fast_finish flag is responsible for triggering multiple build notifications on #zftalk.dev.
Add support for Zend v3 FactoryInterface by considering the
$requestedName parameter when creating a SessionManager instance.

This allows applications to extend SessionManager by still using
the default factory with all its logic.
@Slamdunk Slamdunk changed the title [WIP [WIP] Add PHP 7.1 & 7.2 support, drop PHP 5.6, bump PHPUnit Jun 9, 2017
@Slamdunk Slamdunk changed the title [WIP] Add PHP 7.1 & 7.2 support, drop PHP 5.6, bump PHPUnit [WIP] Add PHP 7.1 & 7.2 support, drop PHP 5.5, bump PHPUnit Jun 9, 2017
@Slamdunk Slamdunk changed the title [WIP] Add PHP 7.1 & 7.2 support, drop PHP 5.5, bump PHPUnit [WIP] Add PHP 7.1 & 7.2 support, drop PHP 5.5 & HHVM, bump PHPUnit Jun 9, 2017
…fications

Enable Travis CI slack notifications

Conflicts:
	.travis.yml
…_fix_config_key

Fix the configuration key in the documentation
Destroy should only return false when removal of session truely fails.
`Cache::getItem()` expects to return the second argument by reference.
Updated the expectation to do this.
`AbstractContainer` inherits from `Zend\Stdlib\ArrayObject`.
`ArrayObject::offsetGet()` is defined such as to _return by reference_;
however, the override in `AbstractContainer` did not. This casuses an
issue in current alpha versions of PHP 7.2, as it is considered an
incompatible signature.

This patch updates the `AbstractContainer::offsetGet()` declaration to
return by reference. All tests related to containers continue to pass.
A number of `session.*` INI options were removed starting in 7.1,
causing tests to fail. This patch updates the test suite to skip
tests for INI options that do not exist when run under 7.1.
SessionManager creates instance of $requestedName
- Assign new variable name vs re-use of `$requestedName`.
- Use ternary for initial assignment of `$managerClass`.
- Space after `!` operator
- Updated test names to reflect behavior being tested.
Add PHP 7.1 & 7.2 support, drop PHP 5.5 & HHVM, add PHPUnit 6 support

Conflicts:
	.travis.yml
	composer.json
	src/Config/SessionConfig.php
	src/Config/StandardConfig.php
	test/Config/SessionConfigTest.php
	test/Config/StandardConfigTest.php
	test/SessionManagerTest.php
	test/StorageTest.php
Updated build matrix to follow lowest/locked/latest strategy, which will
make testing easire going forward.
@weierophinney
Copy link
Member

@Slamdunk I've updated this to remove conflicts, and to improve the build matrix.

New expectation introduced in zendframework#73 to use modern exception expectation
method.
@weierophinney weierophinney merged commit f78e9b7 into zendframework:develop Jun 19, 2017
weierophinney added a commit that referenced this pull request Jun 19, 2017
weierophinney added a commit that referenced this pull request Jun 19, 2017
@weierophinney
Copy link
Member

Thanks, @Slamdunk; merged to develop for release with 2.8.0

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants