php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16871 dump_node param error
Submitted: 2002-04-27 06:39 UTC Modified: 2002-05-15 08:54 UTC
From: dan at mojavelinux dot com Assigned:
Status: Closed Package: DOM XML related
PHP Version: 4.0CVS-2002-04-27 OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dan at mojavelinux dot com
New email:
PHP Version: OS:

 

 [2002-04-27 06:39 UTC] dan at mojavelinux dot com
As of 2002-04-27 this function is requiring the first parameter to be the node when used as

DomNode->dump_node(DomNode)

this is an error in the convention that if a Dom object is used as the class instance, the first parameter should be passed as the first parameter to the function.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-15 08:54 UTC] chregu@php.net
The class instance should be a DomDocument, not a DomNode.

i don't know really at the moment why your code works  as well ... I would advise to use the DomDocument not the DomNode as the code can change in the future.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon May 06 21:01:34 2024 UTC