-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix unit test for issue #12648 - Incorrect scope of view variables #13288
Conversation
61ea094
to
df8b3fb
Compare
@sergeyklay Just to be sure, could you please take a look at the unit test and confirm it's correct? It seems strange to me nobody has complained about #12648 which makes me think if we're doing something wrong :) We're using parametric partials which does not work with PHP 7 (the variables leak between partials). Thanks for your help on this! |
/ cc @Jurigag |
@piit79 As I can see it happens only in Zend Engine 3 (PHP 7). Refs: zephir-lang/zephir#1621, #12176 |
@sergeyklay that's right, we only started having the issue when we switched to PHP 7 recently (with the same code). Thanks for looking into this. |
@piit79 I'll try to sort out with this |
I hope we managed to sort out with this issue finally here #13606. All necessary changes are already in the appropriate branch. We will try to release the next version in the coming days. Thank you for your patience, the report, and for helping us make Phalcon better. |
@sergeyklay That's great! Can you please point me to the branch? I'll do a quick test. However, I see you haven't merged the fix for the unit test, can I ask why? It's still broken in master:
The problem is that if the variable |
Please see: #12648 (comment) |
Hello!
In raising this pull request, I confirm the following:
Small description of change:
The unit test for issue #12648 is incorrect and doesn't test the failure condition of the issue properly. The issue is marked as fixed but the problem is still present in 3.3.x.
Thanks
Petr Sedlacek