Re: [PHP4BETA] PHP integration for Roxen (1.4-)

From: Date: Sun, 23 May 1999 21:27:31 +0000
Subject: Re: [PHP4BETA] PHP integration for Roxen (1.4-)
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-1005@lists.php.net to get a copy of this message
At 10:48 23/05/99 , Per Hedbor wrote:
I could probably be considered rather knowledgeable in the Roxen extension API, since I wrote Roxen. :-) Roxen is multithreaded, but any module can be flagged as single threaded. That module will then get it's calls serialized, which might be enough for PHP. The calls will still occur in different threads, though, but never more than one at a time.
Well, any serious implementation for PHP with Roxen would have to be thread safe, since serializing requests doesn't sound like a suitable solution, except for testing. We could use the serialized mode to get started with, though.
Pike already deals with almost all of those non-threaded system call issues, so if I can help with that, please do tell.
How does it handle them? Zend is thread safe (to the best of our knowledge, it should be 100% thread safe under both UNIX and Win32). We can't say the same about the rest of PHP. Some parts still haven't been patched for thread safety, but others make use of functions that are simply not thread safe in UNIX's C library, like strtok(). We'd need to use strtok_r() or something like that, won't we?
Also: Would it be possible to use roxens DB- and Image-APIs from PHP?
Anything you can access from C you can easily make accessible for PHP...
And: Does PHP assume the output is a FILE*, fd or something similar? That would be rather troublesome to handle, but not impossible.
PHP's web server layer has a function pointer that is the server's write function, and uses it exclusively. Adding whatever logic or function calls you need for the server write function is not a problem.
Does PHP support flagging a document as cacheable (no need to reparse it for X seconds) or non-cacheable (depends on things like client-version, databases etc)?
Not at this time, no. Zeev -- Zeev Suraski <zeev@zend.com> http://www.zend.com/ For a PGP public key, finger bourbon@netvision.net.il -- PHP 4 Beta

« previous php.version4 (#1005) next »