Thanks to visit codestin.com
Credit goes to github.com

Skip to content

enforce memcached version to be 2.1.0 #12297

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 1 commit into from
Oct 23, 2014
Merged

Conversation

xabbuh
Copy link
Member

@xabbuh xabbuh commented Oct 23, 2014

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #9797
License MIT
Doc PR

The signature of the Memcached::get() method changed with 2.2.0.
Therefore, tests fail in Symfony when mocking Memcached in the
MemcachedSessionHandlerTest of the HttpFoundation component (see
also php-memcached-dev/php-memcached#126 and
https://bugs.php.net/bug.php?id=66331).

@xabbuh xabbuh force-pushed the fix-memcached-tests branch from b64477b to 63dfdad Compare October 23, 2014 10:10
@stof
Copy link
Member

stof commented Oct 23, 2014

It would also be good to detect the Memcached version in the test and skip them when we cannot mock the class, to avoid false failures for people testing locally

@xabbuh xabbuh force-pushed the fix-memcached-tests branch from 63dfdad to 9761c5b Compare October 23, 2014 13:10
The signature of the `Memcached::get()` method changed with 2.2.0.
Therefore, tests fail in Symfony when mocking `Memcached` in the
`MemcachedSessionHandlerTest` of the HttpFoundation component (see
also php-memcached-dev/php-memcached#126 and
https://bugs.php.net/bug.php?id=66331).
@xabbuh xabbuh force-pushed the fix-memcached-tests branch from 9761c5b to 2ac5c86 Compare October 23, 2014 13:11
@xabbuh
Copy link
Member Author

xabbuh commented Oct 23, 2014

That's indeed a good idea. I added it.

@fabpot
Copy link
Member

fabpot commented Oct 23, 2014

Thank you @xabbuh.

@fabpot fabpot merged commit 2ac5c86 into symfony:2.3 Oct 23, 2014
fabpot added a commit that referenced this pull request Oct 23, 2014
This PR was merged into the 2.3 branch.

Discussion
----------

enforce memcached version to be 2.1.0

| Q             | A
| ------------- | ---
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #9797
| License       | MIT
| Doc PR        |

The signature of the `Memcached::get()` method changed with 2.2.0.
Therefore, tests fail in Symfony when mocking `Memcached` in the
`MemcachedSessionHandlerTest` of the HttpFoundation component (see
also php-memcached-dev/php-memcached#126 and
https://bugs.php.net/bug.php?id=66331).

Commits
-------

2ac5c86 enforce memcached version to be 2.1.0
@xabbuh xabbuh deleted the fix-memcached-tests branch October 23, 2014 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants