domxml extension
| From: | brad lafountain | Date: | Sun, 05 May 2002 15:41:20 +0000 |
| Subject: | domxml extension | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-83718@lists.php.net to get a copy of this message | ||
Hello,
I was wondering who was maintaing the dom xml extension.
I was just testing out some stuff.
-------------------------------------
$xml = new DomElement('asdf');
just doesn't work..
$xml = new DomElement('asdf');
$real_element = $xml->domelement('asdf');
works...
I looked into this.. Two reasons this is happening..
1)
The register_class_entry has "DomElement" not "domelement" (all the classes are
like that).
So that is why the constructor isn't being called.
2)
The constructor returns a zval instead of making the addintions to the current
object.
Im sure this happens for all of the classes in the extension.
------------------------------------------
I was also looking into creating domxml nodes to pass into userspace from my
extension. So i would need some exported functions (non static and PHPAPI for
windows).
zval *php_domobject_new(xmlNodePtr obj, int *found TSRMLS_DC)
I think just that one.. ill look into it some more..
I am going to patch it up so the functions are exported and the constructors
work. Ill post it here later.
- Brad
__________________________________________________
Do You Yahoo!?
Yahoo! Health - your guide to health and wellness
http://health.yahoo.com