php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14581 Invalid object in xpath_new_context
Submitted: 2001-12-18 11:09 UTC Modified: 2001-12-18 11:11 UTC
From: liangyi11361 at yahoo dot com Assigned:
Status: Closed Package: DOM XML related
PHP Version: 4.1.0 OS: win NT 4.0
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: liangyi11361 at yahoo dot com
New email:
PHP Version: OS:

 

 [2001-12-18 11:09 UTC] liangyi11361 at yahoo dot com
This code works fine in 4.0.6 
But wouldn't work in 4.1.0

$doc=xmldoc($xml_string);
$ctx=xpath_new_context($doc); --> Warning: Invalid object...

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-18 11:11 UTC] mfischer@php.net
Fixed already in CVS.
 [2001-12-18 11:11 UTC] mfischer@php.net
Btw, use $doc->xpath_new_context() syntax.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 23:01:27 2024 UTC