Search
59 results · page 1 of 3
-
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 …
-
Holly Schilling ·
… for them to support a more robust standard library for them. If implemented as objects, we could use built-in methods or extension functions, but then we have to deal with the passing semantics problem. We could save a lot …
-
Holly Schilling ·
… a trait. With a trait, the trait use is declared within the class definition and all users of the class get those methods. With an extension, they are generally NOT declared by the one who defines the class. They are
-
Tal Peer ·
… an extra field to the zend_module_entry struct to enable extension writers to specify additional function entries (eg. class methods entries). That will enable get_extension_funcs to return information about classes defined in the extension, and not only …
-
Tal Peer ·
… an extra field to the zend_module_entry struct to enable extension writers to specify additional function entries (eg. class methods entries). That will enable get_extension_funcs to return information about classes defined in the extension, and not only …
-
C. Scott Ananian ·
… back on the DOM specs themselves, they are not the standard for DOM. The output HTML functionality was more convenience methods than part of the core extension, Just dealing with the latest WHATWG DOM specs (not the html-specific part …
-
C. Scott Ananian ·
… back on the DOM specs themselves, they are not the standard for DOM. The output HTML functionality was more convenience methods than part of the core extension, Just dealing with the latest WHATWG DOM specs (not the html-specific part …
-
Holly Schilling ·
Holly Le 10/07/2026 à 20:33, Holly Schilling a écrit : . As far as scalar methods goes, I hate my implementation. I’m not suggesting someone else could do better, only that the compromises necessary to implement it weren …
-
Alex \"Pierstoval\" Rock ·
Le 10/07/2026 à 20:33, Holly Schilling a écrit : . As far as scalar methods goes, I hate my implementation. I’m not suggesting someone else could do better, only that the compromises necessary to implement it weren’t …
-
Holly Schilling ·
. As far as scalar methods goes, I hate my implementation. I’m not suggesting someone else could do better, only that the compromises necessary to implement it weren’t worth it. After having implemented it and seen what it …
-
John Bafford ·
… declares that it has added functionality to a class (or interface). Besides allowing one avenue for default implementations for interface methods, extensions would also allow for polyfills for class methods and properties that can be hooked. For example, PHP 8 …
-
Larry Garfield ·
take a cue from Kotlin and C#: Extension functions. Attach method-ish behavior to any type. I like it, and it's a real answer to the mechanics question, not just the set one. Two honest things before I …
-
Michal Kral ·
Hi all, Per Seifeddine's suggestion to keep this out of the karma-request thread, I'm opening a pre-RFC discussion for scalar object methods -- calling a small, curated set of methods directly on scalar values, e.g …
-
Larry Garfield ·
Hi all, Per Seifeddine's suggestion to keep this out of the karma-request thread, I'm opening a pre-RFC discussion for scalar object methods -- calling a small, curated set of methods directly on scalar values, e.g …
-
Christoph M. Becker ·
1: I have seen an extension which allows functions/classes to be redefined, although I can't remember what it is called. Maybe you’re thinking of the runkit extension? https://secure.php..net/manual/en/book.runkit.php …
-
Robert Hickman ·
1: I have seen an extension which allows functions/classes to be redefined, although I can't remember what it is called. Maybe you’re thinking of the runkit extension? https://secure.php.net/manual/en/book.runkit.php …
-
Christoph M. Becker ·
While reviewing a PR[1], which proposes to add two new methods to ext/sqlite3, one being an option to toggle on/off, I've noticed that there already is another method which also enables the extension to toggle …
-
Discussion Native terminal helpers for PHP CLI
Pratik Bhujel ·
Hi Derick, Thanks, that is helpful. I have made both changes now. The extension is at v0.6.0: https://github.com/prateekbhujel/php-terminal/releases/tag/v0.6.0 The stream-aware methods now accept existing PHP stream resources …
-
Kalle Sommer Nielsen ·
Evening Internals While reviewing a PR[1], which proposes to add two new methods to ext/sqlite3, one being an option to toggle on/off, I've noticed that there already is another method which also enables the extension to …
-
Bishop Bettini ·
But I'd still think this would be a "many eyes needed" kind of PR, especially from extension maintainers. Hypothetically, what should these extension maintainers be looking for? Other than "Mmm-hmm. Mmm-HMM. I know some of these …