Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31619 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41893 invoked by uid 1010); 16 Aug 2007 08:23:08 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 41876 invoked from network); 16 Aug 2007 08:23:08 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Aug 2007 08:23:08 -0000 Authentication-Results: pb1.pair.com smtp.mail=rquadling@googlemail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rquadling@googlemail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain googlemail.com designates 209.85.146.178 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@googlemail.com X-Host-Fingerprint: 209.85.146.178 wa-out-1112.google.com Received: from [209.85.146.178] ([209.85.146.178:17214] helo=wa-out-1112.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4E/F1-08359-24904C64 for ; Thu, 16 Aug 2007 04:22:27 -0400 Received: by wa-out-1112.google.com with SMTP id l24so209163waf for ; Thu, 16 Aug 2007 01:22:23 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=googlemail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=oYWe38O3cg8XWm6IVsvfb9HT5slT78iTRyTPYcaMdKxhcmzpqndBeWPL4KRCC+dRRypoKZGyt8DpgdC3W6RSbwIBrHEDg6aToRt3EVB/Vhfjwm2Fu9d+rnM+PE6YbZUNKp+DQr4d+9aE/BpzNA9miN47ODnfYspMOU9LYGkeOc8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=beta; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=mkQfRfjJVBuPhedf1q0v5YLi2cQnRncx96jtufB+9T0sVjEX2pdayA+eKqjcQCbLgt2HlXJYN++0SC7VIQ6YAolHRst+oteChDJhUAnReT9Lpp9Nh9mQlZ5/5U4vJz6PlBN1MWuAzr8+OWoOgx2aJrqE9w9dfdU4yF6c5LDcPPs= Received: by 10.114.177.1 with SMTP id z1mr255263wae.1187252543238; Thu, 16 Aug 2007 01:22:23 -0700 (PDT) Received: by 10.115.74.10 with HTTP; Thu, 16 Aug 2007 01:22:23 -0700 (PDT) Message-ID: <10845a340708160122j74694ea2n90fe299e67770004@mail.gmail.com> Date: Thu, 16 Aug 2007 09:22:23 +0100 Reply-To: RQuadling@GoogleMail.com To: "Gwynne Raskind" Cc: "Christopher Jones" , "PHP Developers Mailing List" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3B3E836C-A029-4877-97EB-D935E5853C9A@wanderingknights.org> <46C33F52.6040202@oracle.com> Subject: Re: [PHP-DEV] Nowdocs revised From: rquadling@googlemail.com ("Richard Quadling") On 16/08/07, Gwynne Raskind wrote: > On Aug 15, 2007, at 2:00 PM, Christopher Jones wrote: > > Did you get any further with merging this? It would help users of > > the XQuery language. > > > > If I understand your intent, I would be able to change the code > > fragment > > below to use a nowdoc, and not have to escape the XQuery $i variables. > > > > Chris > > > > > > > > > $c = oci_connect("hr", "hrpwd", "localhost/orcl"); > > > > $xq = << > select column_value > > from xmltable('for \$i in ora:view("locations") return \$i') > > END; > > > > $s = oci_parse($c, $xq); > > oci_execute($s); > > while ($row = oci_fetch_row($s)) > > var_dump($row); > > ?> > > I didn't get any further, no :(. The decision of whether to merge the > nowdocs patch is out of my hands now, since I don't have source > karma. However, since the main thing standing in the way of its > implementation was concern over the usefulness, your comment is very > helpful, and I'd like to open the topic for discussion again on the > list, if no one out there has any objection :) Being able to code templates within PHP rather than as an external file without any escaping or variable expansion _is_ useful. -- ----- Richard Quadling Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 "Standing on the shoulders of some very clever giants!"