Skip to content
#externals

Search

12 results

  1. Patrick Schaaf ·

    … from class A. I think that the issue might be solved by an additional, not-yet-discussed and very general extension, which is something I missed being able to do from time to time: the possibility to declare a method …

  2. Rowan Tommins [IMSoP] ·

    … from the mention of "compile-time", which isn't when visibility checks happen. The method is looked up, then its visibility flags are enforced, all at runtime. So another way of putting it is that an extension method has no …

  3. Dan Ackroyd ·

    … branch shows how to do a separate thing. Adding a class is on this branch: https://github.com/ThomasWeinert/php-extension-sample/tree/class_method Though you would need the ZEND_ACC_STATIC flag for the method entry also. Also …

  4. Kajetan Dolinar ·

    Johannes, all, Best, of course, would be to show code. (Mind: It is legal to have an open source extension on top a closed library if you don't want to share some library ... benefit then is that it might …

  5. Rob Richards ·

    A few comments from eyeballing the patch: Depending upon how much c14n functionality there is to be, this might be better off as a standalone extension. This way it wouldn't be dependant upon DOM (especially if PHP is built …

  6. Gustavo Lopes ·

    … method and a property with that name. Properties are not case-sensitive, hence calling closures-as-methods is case-sensitive (contrary to calling regular methods). What to do with properties with no visibility? Ignore them (and let fall back t

  7. Sara Golemon ·

    … harder to maintain and it has the potential to make PHP far more complicated than what it should be. An extension could accomplish this by exporting an interface which overrides the object's read_property() method. One could "flag" which …

  8. Alex \"Pierstoval\" Rock ·

    … but not used. With the inclusion of the Visibility RFC, explicit require or require_once is not necessary. The use extension syntax replaces it. The consequence of this is that extension methods are only visible in scopes that explicitly want …

  9. RFC Discussion "var" Deprecation

    Patrick ALLAERT ·

    … in the RFC under: "public Is Not The Same", one can use "var" to declare a property without specifying its visibility and this is true for method as well: "function" is equivalent to "public function". Forcing people to specify a …

  10. Larry Garfield ·

    ergonomic, and in the case of magic method usage improve performance. I think this is a good direction to explore, but would recommend delaying it until PHP 8.1. As the RFC and discussion note, the design space here …

  11. Rowan Collins ·

    … but I find them unconvincing. Most languages have some keyword for introducing methods: "def" in Ruby; "sub" in Perl (or "method" when using some of the OO helper extensions such as MooseX::Declare); "defun" in Common Lisp; "procedure" (or "function …

  12. guilhermeblanco@gmail.com ·

    … lead to unpredictable behavior. Based on that, I consider it may be a good addition to PHP to add class visibility support and enhance existing modifiers' support. First, we should discuss about possible enhancements on current existing class modifiers' support …