Closed dschissler closed 3 years ago
Another weird point:
As of PHP 5.3.3, methods with the same name as the last element of a namespaced class name will no longer be treated as constructor. This change doesn't affect non-namespaced classes.
So all Zephir could have this removed since Zephir classes will always be namespaced. So this has basically never been relevant in the lifetime of Zephir, which is PHP 5.3.3+.
Now I have to rename either my Gettext class and namespace or the gettext method. Really annoying! I've had to bleed all over the damn place to get my extension to the place it is now.
Correction, I can compile it but it crashes PHP and so I have to delete my installed extension to be able to continue. So somehow PHP is treating classes from the Zephir compiled .so as different than normal PHP. At any rate with whatever solution this is bad behaviour.
Since Zephir is going PHP 7.2+ then this feature can be removed from latest Zephir. Simply delete out the Zephir compiler code that treats it as a constructor.
Constructors and Destructors.
Also
I'd like to be able to compile the following Zephir but I can't.
Refs: https://github.com/phalcon/zephir/issues/934