Bug #12993 Updated: xpath_eval doesn't work anymore (segfault)

From: Date: Tue, 28 Aug 2001 08:43:24 +0000
Subject: Bug #12993 Updated: xpath_eval doesn't work anymore (segfault)
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-64476@lists.php.net to get a copy of this message
ID: 12993 Updated by: chregu Reported By: chregu@phant.ch Status: Open Bug Type: DOM XML related Operating System: Debian/unstable Linux 2.4.9 PHP Version: 4.0CVS-2001-08-28 New Comment: mmmh... maybe it was my fault $node = xpath_eval($xpth,"/root/books"); seems to work, so i'm not sure if it's a bug anymore but comparing to the other syntax, should $node = $xpth->xpath_eval("/root/books"); not also work? Previous Comments: ------------------------------------------------------------------------ [2001-08-28 04:23:24] chregu@phant.ch ah forgot to mention: the script worked in 4.0.6 ------------------------------------------------------------------------ [2001-08-28 04:21:14] chregu@phant.ch actually it does not work in PHP_4_0_7 from cvs as well. script: $fd = fopen( $datasrc, "r" ); $xmlstring = fread( $fd, filesize( $datasrc ) ); fclose( $fd ); $xml = xmldoc($xmlstring); $xpth = $xml->xpath_new_context($xml); $node = $xpth->xpath_eval("/root/books"); just segfaults at xpath_eval(). libxml2-version is 2.4.3 chregu ------------------------------------------------------------------------ Edit this bug report at http://bugs.php.net/?id=12993&edit=1

« previous php.dev (#64476) next »