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
 [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: Tue Apr 16 16:01:28 2024 UTC