From:             [EMAIL PROTECTED]
Operating system: FreeBSD
PHP version:      5.1.0RC6
PHP Bug Type:     DOM XML related
Bug description:  isset(DOMNodeList->length) returns false

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 bug report at http://bugs.php.net/?id=35342&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=35342&r=trysnapshot4
Try a CVS snapshot (php5.0): 
http://bugs.php.net/fix.php?id=35342&r=trysnapshot50
Try a CVS snapshot (php5.1): 
http://bugs.php.net/fix.php?id=35342&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=35342&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=35342&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=35342&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=35342&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=35342&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=35342&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=35342&r=notwrong
Not enough info:             
http://bugs.php.net/fix.php?id=35342&r=notenoughinfo
Submitted twice:             
http://bugs.php.net/fix.php?id=35342&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=35342&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=35342&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=35342&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=35342&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=35342&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=35342&r=float
No Zend Extensions:          http://bugs.php.net/fix.php?id=35342&r=nozend
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=35342&r=mysqlcfg

Reply via email to