Search
583 results · page 2 of 30
-
Rob Richards ·
… direct libxml tree functions with libxml xpath queries. Perhaps. But that happy medium can be achieved in userspace, or another extension. SimpleXML's utility methods are now nowhere near the type of support I'm guessing you want, they are …
-
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
-
Andrew Faulds ·
… and "escaping" as narrow distinct concepts, this is fine. This does not mean that we can not use existing filter extension - with already implemented methods doing exactly what is needed to be done - because they are to be used in …
-
Wez Furlong ·
… the address of the plain_files_wrapper, so if you do hook it, you'll either need to poke the methods from your extension or patch the PHP sources. If you're wondering what kinds of assumptions, the biggest one …
-
Daniel Ribeiro Gomes ·
… the problem properly, since readability is not a general requirement. My solution for that problem would be to create that extension and have those nice methods on it, but not to modify the core, though. Like Nikita well said, DateTime …
-
Sara Golemon ·
As you suggested initially. Don't make them objects. You can leave them scalars and still give them methods all from an extension. Not via typical APIs, granted, but the engine hooks are all in there. On Thu, Jul 19 …
-
Cornelius ·
… wiki.php.net/rfc/autoboxing . Regards, Moriyoshi Hi, I think you should mention that this extension basically would prohibit adding methods on primitive types later, which is probably more efficient and allows one to use the same methods on the …
-
Lukas Smith ·
… to say as you only mention commit() but not getting out of auto commit mode. These can (perhaps should) be extension level functions and not methods of the PDO class, unless they happen to be uniform API's across the …
-
Greg Beaver ·
Hi, Rob Richards wrote: Within the dom extension there are a few methods which can be called both statically and off an instantiated object. The PEAR base class also has this design flaw in several methods. It has caused nothing …
-
Paul Jones ·
… it several times before in userland helps. Presenting the superglobals as read-only properties does the trick for the request extension; it's even simpler than using methods. -- Paul M. Jones pmjones88@gmail.com http://paul-m-jones.com Modernizing …
-
michal@brzuchalski.com ·
IMHO if there were possibility to provide scalar objects like in Nikic extension https://nikic.github.io/2014/03/14/Methods-on-primitive-types-in-PHP.html most of str* and many other functions could be called wythout FQN simply …
-
Calvin Buckley ·
… superglobals through these filters, and then access the raw (but checked/filtered) data through the extensions filter_get() and friends methods. Removing these defaults cripled the extension. If anything, that deprecation ought to be undone, before the extension gets refreshed …
-
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 …
-
Paul Jones ·
… values, with methods for adding application-specific request information in immutable fashion. ServerResponse, essentially a wrapper around (and buffer for) response-related PHP functions, with some additional convenience methods, and self-sending capability. The extension is available as a PECL
-
Paul Jones ·
… information in immutable fashion. ServerResponse, essentially a wrapper around (and buffer for) response-related PHP functions, with some additional convenience methods, and self-sending capability. The extension is available as a PECL package for installation and testing at: pecl.php …
-
Ilia Alshanetsky ·
… and follows its own naming convention. I don't think we should be added boat-load of wrappers for SQLite3 extension... That's why I explicitly mentioned 'basic' methods (exec, query and similar), the python bindings do it for example …
-
Stefan Marr ·
… callPrintA(); // 'A2' This is what Marcus aso. has been looking for, yes. Merging Multiple Methods or Properties Merging is an extension of aliasing. Instead of aliasing properties or methods to unique names, multiple properties or methods are aliased to the …
-
Gregory Beaver ·
… for me, but I haven't been able to find any documentation on how to define a class, give it methods and properties etc within an extension. Is there any documentation on this? If not, can someone point me in …
-
Marcus Boerger ·
… again if there is no correct way... marcus Friday, July 2, 2004, 3:50:18 PM, you wrote: in my extension, i have a class which has methods which work slightly differently depending on whether or not they are called …
-
l0t3k ·
in my extension, i have a class which has methods which work slightly differently depending on whether or not they are called statically. as an example : $original = new UnicodeString("HELLO WORLD","utf8"); $lower = UnicodeString::toLowerCase($original); /* returns a new copy …