Bug #14494 Updated: xpath_new_context nolonger works
| From: | mfischer@php.net | Date: | Thu, 13 Dec 2001 21:38:50 +0000 |
| Subject: | Bug #14494 Updated: xpath_new_context nolonger works | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-73622@lists.php.net to get a copy of this message | ||
ID: 14494
Updated by: mfischer
Reported By: peter@jingo.com
Old Status: Open
Status: Closed
Bug Type: DOM XML related
Operating System: Linux Red Hat 7.1
PHP Version: 4.1.0
New Comment:
Syntax has changed, use
$xpath = $xmlDOM->xpath_new_context();
This is fixed in CVS already.
Closing.
Previous Comments:
------------------------------------------------------------------------
[2001-12-13 16:31:56] peter@jingo.com
xpath_new_context()
worked fine in 4.0.6 with libxml2-2.3.10
but not with 4.1 with neither
libxml2-2.4.2 nor libxml2-2.4.12
<?php
$xmlDOM = xmldocfile('index.xml');
$xpath = xpath_new_context ($xmlDOM);
?>
returns:
Warning: Invalid object in test.php on line 13
./configure --with-apxs=/usr/local/apache/bin/apxs --with-db --with-pgsql=/usr/local/pgsql
--with-gettext --with-openssl=/usr/local/ssl --enable-dbase --with-expat-dir=/usr/local/expat
--with-dom --with-zlib --enable-xslt --with-xslt-sablot=/usr/local/sablot
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14494&edit=1