ID:               35342
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Assigned
+Status:           Closed
 Bug Type:         DOM XML related
 Operating System: FreeBSD
 PHP Version:      5.1.0RC6
 Assigned To:      rrichards
 New Comment:

This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2005-11-22 23:43:07] [EMAIL PROTECTED]

Assigned to the maintainer.

------------------------------------------------------------------------

[2005-11-22 23:38:31] [EMAIL PROTECTED]

Description:
------------
isset($DOMNodeList->length) seems to return false, all the time.

Reproduce code:
---------------
<?php
    $DOMDocument = new DOMDocument;
   
$DOMDocument->loadXML("<root><foo>foobar</foo><foo>foobar#2</foo></root>");

    $DOMNodeList = $DOMDocument->getElementsByTagName("foo");

    var_dump($DOMNodeList->length, isset($DOMNodeList->length));
?>

Expected result:
----------------
int(2) bool(true) 

Actual result:
--------------
int(2) bool(false) 


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=35342&edit=1

Reply via email to