Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:61111 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30448 invoked from network); 7 Jul 2012 13:23:56 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 7 Jul 2012 13:23:56 -0000 Authentication-Results: pb1.pair.com header.from=lonnyk@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=lonnyk@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.214.170 as permitted sender) X-PHP-List-Original-Sender: lonnyk@gmail.com X-Host-Fingerprint: 209.85.214.170 mail-ob0-f170.google.com Received: from [209.85.214.170] ([209.85.214.170:44328] helo=mail-ob0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E7/F2-11845-A6838FF4 for ; Sat, 07 Jul 2012 09:23:55 -0400 Received: by obfk16 with SMTP id k16so19289188obf.29 for ; Sat, 07 Jul 2012 06:23:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=7dyUiX838z+N/hdNnPyNY/V0kVOlP5oE0gg+Qqz+i/U=; b=wX59FVv8uayhQDUwdlw5D4j+Dgtyjr2twu9PPhz/Llid6bztolylXovX1kagHkelhi Om+yEd+WrVVuoNbzedbB35+4Ht2f+tA6ZalIArDICsp0yVLzpWRnUdDT4eLO625O+n6W yUKC/Kzq9Sy25C63c3cbARuUBQG+D40bxahZ04EILUteVCFN0SQK6Mnqke3fyXkRcvDK O16sIEMvPa6+v8O8j9j2CgAjEm8W4Gba197ezPw5CY4DL/luJZlQzhS/wx8oHPakbJfY 4ZlIgr44Ih4s4BtXJbfDtqdR8FndT6N3FpKTTXeeUsOASjfbMGfpBfO15LRWprrYjRgP Zt3Q== MIME-Version: 1.0 Received: by 10.60.22.201 with SMTP id g9mr34652373oef.8.1341667432159; Sat, 07 Jul 2012 06:23:52 -0700 (PDT) Received: by 10.182.69.169 with HTTP; Sat, 7 Jul 2012 06:23:52 -0700 (PDT) In-Reply-To: <4FF77065.101@sugarcrm.com> References: <4FF77065.101@sugarcrm.com> Date: Sat, 7 Jul 2012 09:23:52 -0400 Message-ID: To: Stas Malyshev Cc: PHP Internals Content-Type: multipart/alternative; boundary=e89a8fb1ed4ab35bb804c43d4a3e Subject: Re: [PHP-DEV] Re: [PATCH] Feature 55218 - SimpleXML namespaces From: lonnyk@gmail.com (Lonny Kapelushnik) --e89a8fb1ed4ab35bb804c43d4a3e Content-Type: text/plain; charset=ISO-8859-1 Hi Stas, Thanks for the response! Usually it helps to talk to extension maintainer (list of them in in > EXTENSIONS file). > In the original message of this thread I CCed the extension maintainer listed in EXTENSIONS (per the instructions in the README.SUBMITTING_PATCH) and I did not hear anything back. Previously, when I originally wrote this feature, I sent a private e-mail to the 3 maintainers listed on top of the simplexml.c file and did not hear anything back either (this was on 2011-08-31). > Speaking of the patch, could you explain what is it returning when > recursive is set but from_root is false? > It will only return the namespaces below and including the node you call it on. Say you have an XML doc like https://gist.github.com/3066372 Currently, if you call $x->getDocNamespaces(true) and $x->person[0]->getDocNamespaces(true) you get the same results. This is because the recursive call *always* starts from the root of the document. With the patch, when from_root is false the recursion will start from the node you call getDocNamespaces on. So when calling $x->getDocNamespaces(true, false) and $x->person[0]->getDocNamespaces(true, false) they return results based on the node they were called on. > Besides that, it looks OK but also needs NEWS and UPGRADING > descriptions. Please add those and I think it can be merged. These are now added. Thank you for your help! Please let me know if anything else needs to be changed. Have a great day! -- Lonny Kapelushnik http://lonnylot.com (732) 807-5509 --e89a8fb1ed4ab35bb804c43d4a3e--