PHP 6 - Extensions ...

From: Date: Fri, 21 Feb 2014 12:58:55 +0000
Subject: PHP 6 - Extensions ...
References: 1 2 3 4 5 6 7 8 9  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Ralph Schindler wrote:
I know extensions are needed. Still I think PHP is powerful and often (often != always) fast enough.
You're right for sure. By and large, the argument of the extension vs. userland debate is far less technical and more social/cost-benfit driven than anything else.
That PHP supports the range of platforms that it does with the flexibility that it does creates it's own problems? Many users will never have even looked at how their PHP is provided, so a single executable over individual modules is academic. It is probably also mixed up with the 'compile' verses 'run script' debate? Either way,a hosted PHP environment needs to be able to supply all of the extensions that it's client base needs, but that may well be at the expense of speed? Being able to load only those extensions a script actually needs may result in a much smaller run time package? Be that a complied application using dynamic copies of preloaded extensions, or a cached set of code using a memory resident set of functions? Extensions are the only way to handle the diverse range of external code that PHP uses, it is purely how those individual packages are combined that is the area for debate? Personally I prefer a smaller core than PHP provides by default, and my own small set of extensions added dynamically. I can add extra facilities simply be loading an additional extension .ini file and restarting web/PHP. But I don't believe there be ANY gain in a script being able to only use those extensions it needs? One area that would make a lot more sense to me though is the ability to apply security updates to a specific extension and only roll out that one package rather than having to wait for the whole PHP distribution to be updated? Linux distributions sort of do this providing incremental updates, but actually that is more of a hindrance at times! What is being distributed is not necessarily the same as the current master code base :( -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk

Thread (25 messages)

« previous php.internals (#72740) next »