Re: [PHP4BETA] SAPI
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: [PHP4BETA] SAPI | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-781@lists.php.net to get a copy of this message | ||
> There are two basic options. One, is taking the PHP 3.0 code as-is and
> patching it to work on top of SAPI, instead of on top of Apache. The other
> is implementing that code from scratch. The major question is whether or
> not the PHP 3.0 code is 100% RFC compliant or not, and also, whether it's
> optimized. The best person to answer these questions is Rasmus,...?
The file upload RFC (1867) is pretty sparse actually. But yes, the
current code is RFC-1867 compliant as far as I know. However, I wouldn't
call it optimized. The major thing I would like to do here is to write
the file being uploaded to disk every 8K or whatever chunk size seems
appropriate. The current code treats a file upload just like a POST and
reads the uploaded file into memory. Then after the upload is done it
writes the entire thing to disk. This sucks in a major way for large
files being uploaded.
> Please, whether you tried it or not, take the time to say so.
I haven't been doing much with it. IBM has currently tasked me with
becoming the local expert on WebSphere and JServ. If I ever get
WebSphere installed and working on Linux, I should have some interesting
benchmarks.
-Rasmus
--
PHP 4 Beta