The Phalcon PHP Framework

Results 15 comments of The Phalcon PHP Framework

Yeah, implementing traits would be easy as you describe, I mean exposing traits as part of the extension will not be possible. They will look as standard classes.

You might want to use a 'while' instead of a 'for'

This happens because !values returns a boolean value which cannot be used in a 'instanceof' operation. PHP allows to do this because 'instanceof' has a difference precedence, but the code...

Mostly because it's not recommended, Zephir is unable to analyse the code inside c-blocks making the whole compiler useless. You only must use it if you need to do something...

Feel free to use the tool you think it's more appropriate for your work