-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Failed test in Component/HttpFoundation/Tests/Session/Storage/Handler/MemcachedSessionHandlerTest.php #9797
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
Comments
your setup is wrong, i am inclined to think that you do not have the right versions of things. maybe memcache or such.
but also sounds like you have less skipped tests than i have. Which version of symfony are you running exactly? which versions or enabled things you have.
Checking now enabling the thing. After brew install php55-memcached:
I think is safe to close if your environment after updating works. |
Yes this is related to new memcached extension version.
This latest beta version:
|
FYI, Extracted from reflection diff:
|
then please close as issue should be filed with them and not with symfony. I install the extension via brew install php55-memcached. |
@cordoval sorry but I must disagree. Yes memcached 2.2.0 is still beta and is not "yet" the default "stable" version. In a few time (weeks, months...) memcached new API will become the default "stable" one, and then symfony will need to be fixed. I Test beta versions exactly for what they are designed => see what is broken and fix it. |
I see so you plan to propose a PR for supporting this new API, provided you are totally sure this is the reason. I agree then. However it is a good idea to provide more details. Your first post did not even hint that you were using a beta version of the memcached extension. That said, it would be a good idea if you post all your research on a diff on the API. |
No, I don't plan any PR, as I'm not enough aware of symfony internals.
Sorry, but I don't think at memcached beta when I open this report
I don't know if adding a new "optional" parameter is considered as a BC break. At least it doesn't break application using this API. |
What I don't understand is why it fails as the new argument is optional. |
It seems there is a bug in PHP with reflection and ARGINFO for internal extensions (which can be ZEND_SEND_BY_VAL , ZEND_SEND_BY_REF or ZEND_SEND_PREFER_REF). And cas_token is ZEND_SEND_PREFER_REF. I will try to report this to PHP project (out of my skill). I think an acceptable workaround for the symfony test suite is to use, for this extension:
This works for me. |
please provide the bug link @remicollet so i can document it |
Just open: https://bugs.php.net/66331 ZEND_SEND_PREFER_REF issue trying to overlad |
php#66331 great! |
@remicollet i am trying to setup the beta extension https://travis-ci.org/symfony/symfony/jobs/15771509 but it is holding on interactively i think |
@remicollet https://bugs.php.net/bug.php?id=66331 updated with patch ... |
@krakjoe thanks for your participation in the community, we do appreciate your patch definitely! |
It turns out there is some bigger problem, while the patch I submitted does fix the error and reflect the correct arg info in the engine, it would also allow function foo(&$bar = null) to be called as foo('bar'), which is something we purposely prohibit. I'm not sure what the final solution will be here ... good to be moving forward anyway ... |
…ns to run skipped tests (cordoval) This PR was merged into the 2.3 branch. Discussion ---------- [Tests|WCM] add memcache, memcached, and mongodb extensions to run skipped tests | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | na | License | MIT | Doc PR | na - [x] go over all skipped tests, take note and check they are reasonable - [x] reenable memcache, mongodb, and memcached We are keeping the icu intl related tests skipped because setting up icu 51.2 is totally time consuming in travis and it would require a custom distro box on travis because there are no ppa's available for the ubuntu version. I tried hard but it does not seem worth it. Same for plugging beta of memcached with pecl, it is just not reasonable to be running beta versions on travis. This then does not address #9797 but at least now we are aware. This PR now can be merged as is as it improves tests that before were not ran. Not all but more than before. 👶 Commits ------- 47a822d add memcache, memcached, and mongodb extensions to run skipped tests
…ents (except intl icu) (cordoval) This PR was submitted for the 2.4-dev branch but it was merged into the 2.4 branch instead (closes #9830). Discussion ---------- [WCM][Tests] Improve tests running with specific requirements (except intl icu) | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | na | License | MIT | Doc PR | na - [x] go over all skipped tests, take note and check they are reasonable - [x] reenable memcache, mongodb, and memcached We are keeping the icu intl related tests skipped because setting up icu 51.2 is totally time consuming in travis and it would require a custom distro box on travis because there are no ppa's available for the ubuntu version. I tried hard but it does not seem worth it. Same for plugging beta of memcached with pecl, it is just not reasonable to be running beta versions on travis. This then does not address #9797 but at least now we are aware. This PR now can be merged as is as it improves tests that before were not ran. Not all but more than before. 👶 Commits ------- 6e0b2dc added condition to avoid skipping tests on JSON_PRETTY support
Issue php-memcached-dev/php-memcached#126 tracks the upstream of this. |
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
…memcached extension (jakzal) This PR was merged into the 2.7 branch. Discussion ---------- [HttpFoundation] Enable memcached tests with the latest memcached extension | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - The check was introduced because of #9797. The issue is now fixed in the memcached extension, but only for the upcoming 3.0 release (for PHP7). I've tested it with the latest memcached extension built from source and PHP 7.0.8. Commits ------- b482fb7 [HttpFoundation] Enable memcached tests with the latest memcached extension
The text was updated successfully, but these errors were encountered: