Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49611 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 59590 invoked from network); 13 Sep 2010 12:24:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2010 12:24:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=fgmarand@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=fgmarand@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: fgmarand@gmail.com X-Host-Fingerprint: 209.85.215.170 mail-ey0-f170.google.com Received: from [209.85.215.170] ([209.85.215.170:57432] helo=mail-ey0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E0/10-57839-A181E8C4 for ; Mon, 13 Sep 2010 08:24:58 -0400 Received: by eyg24 with SMTP id 24so2815353eyg.29 for ; Mon, 13 Sep 2010 05:24:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=GmYHSyya0zM+uXag7yruaHSbVoPw9A6YqI2kBqSAsK4=; b=dm2aCMLLXhJ5HJRi/scz94/cx58OYg9MEB+hirsbs6AP3J3YWzc05PP9ngY53OsdRy 16UZnB4LGxDmZVhMNjM9U+fkiwje19KnlSB5w6186k2fD2bk8SczHBl828NJi9PkI5rf bHIDSiStLeHtHJ2TCWxr9CmjM4txeT3mGnA5Q= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=kiL7TbrMw6WifYnaDcXyzlRFkBXz93OsY4BptmKwi+vGePrieXn/zfJ3EuyDSQTIJR f2zgtFkdvT4QVmndV55XN5aDCg0YFShiUVLO29Zw/KdGlbIMc7675J2dZiGqWmMy2RVG Prjv6eaR1Cw2qq59L/9d+28TL6I0iy6Ivdv7I= MIME-Version: 1.0 Received: by 10.213.113.147 with SMTP id a19mr1725412ebq.24.1284380694722; Mon, 13 Sep 2010 05:24:54 -0700 (PDT) Received: by 10.14.47.73 with HTTP; Mon, 13 Sep 2010 05:24:54 -0700 (PDT) Date: Mon, 13 Sep 2010 14:24:54 +0200 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=00151759334c10ba620490232f30 Subject: WSGI-like SAPI for PHP ? From: fgmarand@gmail.com (FGM at GMail) --00151759334c10ba620490232f30 Content-Type: text/plain; charset=ISO-8859-1 Hello, Having to do some work in Python recently, I had to dig into WSGI and found that its model, much similar to what JSGI, PSGI, Rack do, seemed likely to bring a potentially high performance improvement on my usual (Drupal) environment. This also happened to match a remark done by Rasmus during his presentation in late August at Drupalcon CPH, in which he advised us to evolve Drupal towards a model with a long-term application process - PHP or not, apparently not in his idea (C ?) - to avoid the massive amount of time and effort currently spent on our per-page bootstrapping process, and return PHP userland code to the more "templating" parts of the CMS. However, after digging around on the list archives and elswhere, I could find no trace of a discussion about an approach like this one. CGI/FCGI sure, FPM sure, but nothing like WSGI. The closest approximation appears to be the WPHP package, which does indeed embrace PHP within actual WSGI, but does so at the cost of a fork/exec per hit, definitely the opposite of the goal being looked for. Has there ever been such a discussion, if only to dismiss the prospect as incompatible with PHP/ZE ? Any pointers to more information would be appreciated. Frederic G. MARAND --00151759334c10ba620490232f30--