Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:49612 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 65826 invoked from network); 13 Sep 2010 12:57:14 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 13 Sep 2010 12:57:14 -0000 Authentication-Results: pb1.pair.com smtp.mail=gaochunhui@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=gaochunhui@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.210.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: gaochunhui@gmail.com X-Host-Fingerprint: 209.85.210.42 mail-pz0-f42.google.com Received: from [209.85.210.42] ([209.85.210.42:64638] helo=mail-pz0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id F9/41-57839-9AF1E8C4 for ; Mon, 13 Sep 2010 08:57:13 -0400 Received: by pzk30 with SMTP id 30so2350965pzk.29 for ; Mon, 13 Sep 2010 05:57:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:references :in-reply-to:subject:date:message-id:mime-version:content-type :content-transfer-encoding:x-mailer:thread-index:content-language; bh=QyF2CuXAw5WgzITfbn3AjNSTO55PQsR+fQcdEgx04bI=; b=JvWrfroDODXghZzGo+Z31n6JV5WBC4tSBDHJTRMe8fv6CJ6L1A/G1Pi3mVtrhQ6zS4 5+c/LWhkklAqVKyLXFqZVI1EAyS8BkGRu4WqoysZoroTIn0cpWlew8EeLep/MvX3+QZM I2oU21KcXpTpIPgAXD74hswjPoyXFuiJyMwPs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:references:in-reply-to:subject:date:message-id:mime-version :content-type:content-transfer-encoding:x-mailer:thread-index :content-language; b=DtlfVIlVwkOXDcQ4k65JXGGk2nVwjsWFvtT8Vksz+cPRRw3oGvKQgFwhWYA1ZB/Ui8 RU27bBDd+8LJDxT74IctHQCCqWJFYHvzYVCy1nvnQxCL02jLABW1F2ftfiD8oMzWwS4c 8ea69k9FUNFnyh23cOvbCt6gcGwBhEahhHphc= Received: by 10.142.253.8 with SMTP id a8mr2779151wfi.137.1284382630881; Mon, 13 Sep 2010 05:57:10 -0700 (PDT) Received: from PAULGAOPC ([221.223.99.228]) by mx.google.com with ESMTPS id q11sm8685051wfc.17.2010.09.13.05.57.04 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 13 Sep 2010 05:57:09 -0700 (PDT) To: "'FGM at GMail'" , References: In-Reply-To: Date: Mon, 13 Sep 2010 20:56:58 +0800 Message-ID: <000301cb5343$2cb0f560$8612e020$@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 14.0 Thread-Index: AQHouSrFT9jA8IINKAjN9dq1+/H8upLVE4Hw Content-Language: zh-cn Subject: =?gb2312?B?tPC4tDogW1BIUC1ERVZdIFdTR0ktbGlrZSBTQVBJIGZvciBQSFAgPw==?= From: gaochunhui@gmail.com (=?gb2312?B?uN+0urvU?=) Support WSGI SAPI, WSGI more simple. -----=D3=CA=BC=FE=D4=AD=BC=FE----- =B7=A2=BC=FE=C8=CB: FGM at GMail [mailto:fgmarand@gmail.com]=20 =B7=A2=CB=CD=CA=B1=BC=E4: 2010=C4=EA9=D4=C213=C8=D5 20:25 =CA=D5=BC=FE=C8=CB: internals@lists.php.net =D6=F7=CC=E2: [PHP-DEV] WSGI-like SAPI for PHP ? 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