Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:29434 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 13354 invoked by uid 1010); 15 May 2007 10:21:54 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 13339 invoked from network); 15 May 2007 10:21:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 May 2007 10:21:54 -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.234 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.234 nz-out-0506.google.com Linux 2.4/2.6 Received: from [64.233.162.234] ([64.233.162.234:41594] helo=nz-out-0506.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 66/E7-07106-0C989464 for ; Tue, 15 May 2007 06:21:54 -0400 Received: by nz-out-0506.google.com with SMTP id k1so86523nzf for ; Tue, 15 May 2007 03:21:50 -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=mhdSYqWd5VqLcKBarVIqg12JFVET/rT8jIcFCuWT0gJUMl6gFtlG9mt2NmlP3bl+3Wp2nYDxy9lIGWpRQuDVmZl4GTZK3Rc+3WRNVChyvOgy/Q48KcZfBRc0IkSOXqUY1Nuvwu2V8qNsfYoq9IMtzwiq68zFBXofvNRJz5KIuHQ= 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=Yb/A4G6twPlVV6az/92i6+oIgHcAzniCr2y8IBF+NMQ+1U1i89rL4l9D0E6A2sjZq2TLVhIK3azltQxJkMttOtuldZGxMnuUYeqWpbmoK0wGvVH/8/iPLMmyyPaUODPf4L8ixJ5p3Sk1dAtA/dK3DdSJj+C87Y0IyRZmE6IQZ7I= Received: by 10.115.32.1 with SMTP id k1mr1469861waj.1179224509892; Tue, 15 May 2007 03:21:49 -0700 (PDT) Received: by 10.115.78.3 with HTTP; Tue, 15 May 2007 03:21:49 -0700 (PDT) Message-ID: <799aeacc0705150321v7a49591ayb5b863032f1a5796@mail.gmail.com> Date: Tue, 15 May 2007 12:21:49 +0200 To: internals@lists.php.net MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_188006_10375008.1179224509782" Subject: dom strange behaviours From: kepbepos@gmail.com ("kepbepos kepbepos") ------=_Part_188006_10375008.1179224509782 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_188006_10375008.1179224509782--