Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:54726 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 68971 invoked from network); 19 Aug 2011 12:44:19 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Aug 2011 12:44:19 -0000 Authentication-Results: pb1.pair.com header.from=ulf.wendel@oracle.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=ulf.wendel@oracle.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain oracle.com from 148.87.113.117 cause and error) X-PHP-List-Original-Sender: ulf.wendel@oracle.com X-Host-Fingerprint: 148.87.113.117 rcsinet15.oracle.com Received: from [148.87.113.117] ([148.87.113.117:31983] helo=rcsinet15.oracle.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 2C/7B-11562-2AA5E4E4 for ; Fri, 19 Aug 2011 08:44:18 -0400 Received: from rtcsinet22.oracle.com (rtcsinet22.oracle.com [66.248.204.30]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id p7JCiCod023948 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 19 Aug 2011 12:44:15 GMT Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by rtcsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id p7JCiBDQ020311 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Fri, 19 Aug 2011 12:44:12 GMT Received: from abhmt112.oracle.com (abhmt112.oracle.com [141.146.116.64]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id p7JCi6Eo031871 for ; Fri, 19 Aug 2011 07:44:06 -0500 Received: from [192.168.2.116] (/91.6.188.161) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 19 Aug 2011 05:44:06 -0700 Message-ID: <4E4E5A94.3000101@oracle.com> Date: Fri, 19 Aug 2011 14:44:04 +0200 User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:5.0) Gecko/20110624 Thunderbird/5.0 MIME-Version: 1.0 To: internals@lists.php.net References: <006e01cc5e60$e9106960$bb313c20$@com> In-Reply-To: <006e01cc5e60$e9106960$bb313c20$@com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Source-IP: rtcsinet22.oracle.com [66.248.204.30] X-CT-RefId: str=0001.0A090206.4E4E5A9F.00A1,ss=1,re=0.000,fgs=0 Subject: Re: [PHP-DEV] TameJS syntax for Async/Parallel execution in PHP From: ulf.wendel@oracle.com (Ulf Wendel) Am 19.08.2011 13:12, schrieb Jonathan Bond-Caron: > On Thu Aug 4 09:54 PM, Raymond Irving wrote: >> Hello, >> >> I came across this little library called TameJS (http://tamejs.org/) >> and fell in love with the it's syntax. This had me thinking if it was >> possible to add such features to a PHP CLI (or web app): >> > > Thanks for sharing, never heard of tame. Love the await{} block > > await { > mysql_query_async($sql, $args, defer($rs)); > curl_post_async($url,$data, defer($response)); > } > $rows = $rs->fetchAll(); http://de.php.net/manual/en/mysqli.query.php [...] With *MYSQLI_ASYNC (available with mysqlnd)*, it is possible to perform query asynchronously. mysqli_poll() is then used to get results from such queries. [...] PG should have similar functionality. Ulf