From:             msw at seebi dot de
Operating system: windows xp prof
PHP version:      5.0.0RC2
PHP Bug Type:     DOM XML related
Bug description:  property schemaTypeInfo in DomElement doesn't return anything

Description:
------------
I've tried the property schemaTypeInfo in DomElement. It seems to my that
this property doesn't work, because this property doesn't return an object
from DomTypeInfo class. 

Reproduce code:
---------------
$dom = new DomDocument();
<?php
$dom->preserveWhiteSpace=false;
$t=$dom->load(dirname(__FILE__)."/shipping.xml");
if(!$dom) {
  echo "Error while parsing the document\n";
  exit();
}
$dom->schemaValidate(dirname(__FILE__)."/shipping.xsd");
$tags=$dom->getElementsByTagName("price");
print ($tags->item(0)->nodeName);
$type=$tags->item(0)->schemaTypeInfo;
print (get_class($type));
?>

I've used  the examples shipping.xml and shipping.xsd which comes with PHP
5 RC 2.

Expected result:
----------------
An object of DomTypeInfo in $type

Actual result:
--------------
null. 

-- 
Edit bug report at http://bugs.php.net/?id=28609&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=28609&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=28609&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=28609&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=28609&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=28609&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=28609&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=28609&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=28609&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=28609&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=28609&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=28609&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=28609&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28609&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=28609&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=28609&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=28609&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28609&r=float

Reply via email to