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
Phalcon\Mvc\View can't be extended correctly in Zephir #12460
Comments
Hi, Could you please put the setup of view object? Because I think the error have some relation with the value of templateBefore variable. The error that you get is the same that I had informed before on zephir: |
very simple code, these code will cause error use Phalcon\Mvc\View as PhalconView;
class View extends PhalconView {
protected _var_a = [];
public function someFunction() {
}
} but if I change the properties definition, it can run correctly. use Phalcon\Mvc\View as PhalconView;
class View extends PhalconView {
protected _var_a; //don't defined as array
public function someFunction() {
}
} |
Cc: @SidRoberts |
It sounds like a Zephir bug to me. |
Thank you for contributing to this issue. As it has been 90 days since the last activity, we are automatically closing the issue. This is often because the request was already solved in some way and it just wasn't updated or it's no longer applicable. If that's not the case, please feel free to either reopen this issue or open a new one. We will be more than happy to look at it again! You can read more here: https://blog.phalconphp.com/post/github-closing-old-issues |
Expected and Actual Behavior
I have an class extended Phalcon\Mvc\View write by Zephir, and it run well in Phalcon 3.0.1. when I upgrade to 3.0.2, it cause some "Undefined variable" notice, also the render system is broken. I review the code between 3.0.1 and 3.0.2 and found that many variables has defined as "[]", it seems the "[]" value can't be extend correctly. I write another php file to extend Phalcon\Mvc\View, and it can run well, so is it the bug of Zephir?
Details
The text was updated successfully, but these errors were encountered: