Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29433 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 96173 invoked by uid 1010); 15 May 2007 09:44:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 96158 invoked from network); 15 May 2007 09:44:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 May 2007 09:44:30 -0000 Authentication-Results: pb1.pair.com header.from=kepbepos@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=kepbepos@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 64.233.162.238 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: kepbepos@gmail.com X-Host-Fingerprint: 64.233.162.238 nz-out-0506.google.com Linux 2.4/2.6 Received: from [64.233.162.238] ([64.233.162.238:22600] helo=nz-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 0B/A5-07106-DF089464 for ; Tue, 15 May 2007 05:44:30 -0400 Received: by nz-out-0506.google.com with SMTP id k1so77292nzf for ; Tue, 15 May 2007 02:44:27 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; b=uCtYxrNQFcrAAaBQf6sHaz0ZEa19TvrqiQ6vLa98UTwYoYx6QpFxk5oChh0bCNCXG35iRUVHim1rhhZMepx7c2vtWlzvOUkdlMuYKAIqFxh4zE/4yhphj9fC/PZ8n1QcO+t12dSdzpj+6F1fslh3SIXswMtm+NyOzmvKOC1FYzE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type; b=SEmfPwEb40KvGd99Mw45eyK4baJOZVC4/f5E3yRaNBDgM6h9vq473+iwdEwMaBMamNOL8wjhA3glv0k7s6WvAL1nOE+g/iOe107Na6dxI42YnbeqvNcnjtDVmtBQL3UFfx85biHAZzu+7xKX+DJ8xZfCPj/GeXp30P7ft2IttRw= Received: by 10.114.194.1 with SMTP id r1mr1459882waf.1179222266086; Tue, 15 May 2007 02:44:26 -0700 (PDT) Received: by 10.115.78.3 with HTTP; Tue, 15 May 2007 02:44:26 -0700 (PDT) Message-ID: <799aeacc0705150244w51fc2ce2t9b54512d4e116d55@mail.gmail.com> Date: Tue, 15 May 2007 11:44:26 +0200 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_187698_22431189.1179222266023" Subject: dom strange behaviours From: kepbepos@gmail.com ("kepbepos kepbepos") ------=_Part_187698_22431189.1179222266023 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi all, I've some problems with getAttribute* methods. I thing it is a bug, but before send it, I'd like to propose a little test to you all, just to have a confirmation (maybe is my installation only). first the code and after the output I got on three different servers ----------------------------------------------------------------------------------------------------------------------------------------- first nodesecond node'; $xmlDoc = new DOMDocument(); $xmlDoc->loadXML($doc); $nodeList=$xmlDoc->getElementsByTagName('node'); echo 'Current PHP version: ' . phpversion()."\n\n"; //echo $xmlDoc->saveXML(); foreach($nodeList as $node){ echo "getting id\n"; echo "----------\n"; echo "\tgetAttribute('id'):".$node->getAttribute('id')."\n"; echo "\tgetAttribute('xml:id'):".$node->getAttribute('xml:id')."\n"; echo "\tgetAttributeNS('xml','id'):".$node->getAttributeNS('xml','id')."\n"."\n"; echo "\tgetAttribute('at'):".$node->getAttribute('id')."\n"; echo "\tgetAttribute('xml:at'):".$node->getAttribute('xml:id')."\n"; echo "\tgetAttributeNS('xml','at'):".$node->getAttributeNS('xml','id')."\n"."\n"; } //phpinfo(); ?> ----------------------------------------------------------------------------------------------------------------------------------------- Current PHP version: 5.2.1 getting id ---------- getAttribute('id'): getAttribute('xml:id'):one getAttributeNS('xml','id'): getAttribute('at'): getAttribute('xml:at'):one getAttributeNS('xml','at'): getting id ---------- getAttribute('id'): getAttribute('xml:id'):two getAttributeNS('xml','id'): getAttribute('at'): getAttribute('xml:at'):two getAttributeNS('xml','at'): Current PHP version: 5.1.6 getting id ---------- getAttribute('id'):one getAttribute('xml:id'): getAttributeNS('xml','id'): getAttribute('at'):one getAttribute('xml:at'): getAttributeNS('xml','at'): getting id ---------- getAttribute('id'):two getAttribute('xml:id'): getAttributeNS('xml','id'): getAttribute('at'):two getAttribute('xml:at'): getAttributeNS('xml','at'): Current PHP version: 5.1.4 getting id ---------- getAttribute('id'):one getAttribute('xml:id'): getAttributeNS('xml','id'): getAttribute('at'):one getAttribute('xml:at'): getAttributeNS('xml','at'): getting id ---------- getAttribute('id'):two getAttribute('xml:id'): getAttributeNS('xml','id'): getAttribute('at'):two getAttribute('xml:at'): getAttributeNS('xml','at'): ------=_Part_187698_22431189.1179222266023--