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 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: 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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 03 05:01:38 2025 UTC