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
 [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-2020 The PHP Group
All rights reserved.
Last updated: Sat Feb 22 23:01:25 2020 UTC