ID: 14494 Updated by: mfischer Reported By: [EMAIL PROTECTED] 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] [EMAIL PROTECTED] 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 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]