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 this is not your bug, you can add a comment by following this link.
If this is your bug, but 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

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: Mon Apr 29 18:01:30 2024 UTC