php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #12463 set_attribute($attName, "0") does not add attributes
Submitted: 2001-07-30 04:23 UTC Modified: 2001-11-30 21:20 UTC
From: jw at shapers dot nl Assigned:
Status: Closed Package: DOM XML related
PHP Version: 4.0.6 OS: Win2K
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: jw at shapers dot nl
New email:
PHP Version: OS:

 

 [2001-07-30 04:23 UTC] jw at shapers dot nl
When I try to add an attribute with value "0" to a DomNode, like this:

$cNode->set_attribute("attributeName", "0");

The attribute isn't added, and worse, any attributes added to this node later won't be added aswell. I'll see if I can add a short reproducing script later.

JW
 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-07-30 04:42 UTC] jw at shapers dot nl
When I try to add an attribute with value "0" to a DomNode, like this:

$cNode->set_attribute("attributeName", "0");

The attribute isn't added, and worse, any attributes added to this node later won't be
added aswell. But this does only happen when the zero-valuead attribute isn't the first one added. 
JW
 

 [2001-11-21 20:09 UTC] mfischer@php.net
Can you try latest RC and see if the problem still exists

http://www.php.net/~zeev/php-4.1.0RC3.tar.gz

Feedback.

 [2001-11-30 21:20 UTC] mfischer@php.net
This is fixed already (at least, in CVS). Closing.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 08:01:28 2024 UTC