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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Wed Jul 30 16:00:03 2025 UTC