General Purpose SAPI
| From: | Eric Colinet | Date: | Tue, 27 Jan 2004 09:54:41 +0000 |
| Subject: | General Purpose SAPI | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-378@lists.php.net to get a copy of this message | ||
Hi,
I'm currently in the final stage of the developpement of a sapi called gpsapi (General Purpose SAPI).
I do it for my own needs but I think it could be usefull for other people too.
It's has the same purpose than embed but has a number of advantage other it:
- Customisation of input/output callbacks
- Separate global initialisation and request startup initialisation (allow multiple request in any thread)
- Complete API
- No PHP related header inclusion in the gpsapi header file
It features:
- Wrapping of usefull sapi call (startup, exec, eval, ...)
- Simple thread safe Api (that use the PHP TS mechanism)
- 2 type of initialisations: SAPI and CLI to allow the integration in any environnement
- Support GPC and headers output
- Control over php.ini directives and php.ini path
- Very basic wrapping of SAPI mechanism (no overhead)
- Wrapping of usefull PHP feature (code highlight, syntax check)
It's not a revolution but it allow the use of PHP as a base scripting langage in any type of app without the need to understand all the underlying complexity of the Zend engine.
I wish to add it to PECL under the name "gpsapi".
So if you have questions, comments or veto please let me know ;-)
Cheers,
Eric