Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:43428 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2299 invoked from network); 21 Mar 2009 21:18:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Mar 2009 21:18:08 -0000 Authentication-Results: pb1.pair.com header.from=saddor@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=saddor@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.46.31 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: saddor@gmail.com X-Host-Fingerprint: 74.125.46.31 yw-out-2324.google.com Received: from [74.125.46.31] ([74.125.46.31:28842] helo=yw-out-2324.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1A/6B-45949-F8955C94 for ; Sat, 21 Mar 2009 16:18:07 -0500 Received: by yw-out-2324.google.com with SMTP id 3so999410ywj.83 for ; Sat, 21 Mar 2009 14:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=lH+l2SvYvl2rDxk7hTw1UGwutSsM+pgjfRQvF9gJtW8=; b=eNSAKIkLcU3EHM2U/9TP9qBJy2pyenjrsgKTEH9GNdUWXCdB6Odu7gEK37tmPDLmA6 1Q03IHpivekFnobONAUftFK/B0+sHHprENZ+zzHMTc3FhkLczf1myHlvww0GldXYnEjf NOveVrrNs0A+5Hc8K/1j1s7T2UNZKNVXqLYv4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=idZZMIpjCyHE1GCzTGtNjQiGMtn3a+EkGfWSAi6ua37vwFZpFYWDj1+O3Zs00bWGCt FbftJyviamQJyaA+qIDbAqvwETmO9/tc7p7YJpAWfB7BtOmiO85vSjNWHgOCwwvhxfUC /GPqe8NvHr7apLzkSFm+NtJq2bxvR8eDr0Bdo= MIME-Version: 1.0 Received: by 10.220.72.139 with SMTP id m11mr2174426vcj.32.1237670282565; Sat, 21 Mar 2009 14:18:02 -0700 (PDT) In-Reply-To: References: <412699784.20090312210418@marcus-boerger.de> Date: Sat, 21 Mar 2009 17:18:02 -0400 Message-ID: <239036620903211418y57dea0c7pf7be902d1395cdfa@mail.gmail.com> To: Bas van Beek Cc: internals@lists.php.net, Marcus Boerger Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] embed sapi module and multi-threading From: saddor@gmail.com ("Cesar D. Rodas") I have some problem on the configure script, any ideas? this is the ouput creating libtool appending configuration tag "CXX" to libtool shtool:mkdir:Error: invalid number of arguments (at least 1 expected) shtool:mkdir:Hint: run `./build/shtool mkdir -h' or `man shtool' for detai= ls configure: creating ./config.status config.status: creating config.h config.status: config.h is unchanged 2009/3/21 Bas van Beek : > Hi PHP Devs, > > I've placed an example of the Embed2 SAPI in a subversion repository: > > =A0 =A0 =A0 =A0http://svn.tobin.nl/public/php/embed2/trunk/ > > I hope you like it... > > kind regards, > > Bas van Beek > > Op 12 mrt 2009, om 21:04 heeft Marcus Boerger het volgende geschreven: > >> Hello Bas, >> >> I would assume that we will see more people wanting this in the future. >> So if you're willing to provide your code under PHP License, maintain it >> in the foreseeable future and provide a clean version of it (as in free >> from anything that is not really necessary), then you should show us a >> patch. And if it looks fine you should go for an account. >> >> marcus >> >> Thursday, March 12, 2009, 5:25:32 PM, you wrote: >> >>> Hi, >> >>> For a project of mine I had to have an embedded webserver with php >>> support. For this I've used the boost::asio multi-threaded example as >>> a base and modified it so I could enable php scripting support. =A0The >>> first, logical and fast thing to do was to try out the embed sapi >>> module but I found it to hang on concurrent php_embed_init calls. >> >>> The biggest issue I found was that the embedded module bundles sapi >>> module startup and request startup. I ended up writing my own SAPI >>> module as I also needed full support for POST methods, URL queries, >>> etc. but I can imagine people being interested in having an embedded >>> sapi which separates module startup/shutdown and request startup/ >>> shutdown so concurrency works together with being able to have >>> separate request environments for each thread. >> >>> Separating these calls would allow for the following: >> >>> At program startup initialize the php environment >>> At each thread startup initialize a php request environment >> >>> With a few minor alterations I could convert my specific sapi module >>> or current embed module to a generic embed-mt multithread capable >>> module. >> >>> Would this be something that you are interested in? >> >>> kind regards, >> >>> Bas van Beek >> >> >> >> >> Best regards, >> Marcus >> >> >> -- >> PHP Internals - PHP Runtime Development Mailing List >> To unsubscribe, visit: http://www.php.net/unsub.php >> > > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Cesar D. Rodas http://cesar.la/ Phone: +595-961-974165 Robert Benchley - "I have tried to know absolutely nothing about a great many things, and I have succeeded fair...