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
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: 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: Tue May 06 11:01:30 2025 UTC