php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15173 4.1.1 Killed three commonly used functions
Submitted: 2002-01-22 15:01 UTC Modified: 2002-01-23 10:08 UTC
From: Ray_Cherry at adp dot com Assigned:
Status: Not a bug Package: DOM XML related
PHP Version: 4.1.1 OS: NT
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: Ray_Cherry at adp dot com
New email:
PHP Version: OS:

 

 [2002-01-22 15:01 UTC] Ray_Cherry at adp dot com
(1)  domxml_unlink_node no longer works.  Parameter must be void.

(2)  domxml_node_unlink_node does not work.

(3)  All of my code which used the name or contents attributes of nodes is now dead

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-01-22 19:06 UTC] chregu@php.net
can't answer 1 and 2 but 3)

use $node->tagname() instead of $node->name
use $node->content() instead of $node->content (works only with php from cvs or next release)
 [2002-01-22 20:14 UTC] yohgaki@php.net
DOM XML is experimental extension. It has been changed a lot including API :)
Please read manual for more information. (I hope it's in manual)
 [2002-01-23 08:58 UTC] Ray_Cherry at adp dot com
Thanks for the responses, but they do not help:

(1)  chregu:  DomNode does not have a function content() in 4.1.1 - how do I get next release?  There is a function called node_value, but it does NOT work.  I looked at the source in 4.1 for node_value (4.1.1 "source" is a bunch of html files) and it looks OK, but requires object to have content property which does not appear to get set.

(2)  yohgaki:  Documentation at php.net does NOT agree with 4.1.1.

I realize that DOMXML is experimental:  May I suggest that the 4.06 experiment worked, but that the 4.1.1 experiment is having problems.
 [2002-01-23 10:08 UTC] chregu@php.net
to get the latest version, download
http://snaps.php.net/php4-latest.tar.bz2 of domxml
and copy the ext/domxml directory to your php-4.1.1 source dir (or just compile the whole 4.2-dev version, if you are really adventureous...). afterwards (before ./configure) you have to do ./buildconf in the php source dir root.

node_value is only for DomText, DomCData, DomProcessingInstruction and DomComment Nodes. Not for DomElement nodes (and i think, that's what your looking for).

A solution for getting the content is at:
http://marc.theaimsgroup.com/?l=php-general&m=101121434900468&w=2


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 14:01:32 2024 UTC