Bug #12993: xpath_eval doesn't work anymore (segfault)
| From: | chregu at phant dot ch | Date: | Tue, 28 Aug 2001 08:21:14 +0000 |
| Subject: | Bug #12993: xpath_eval doesn't work anymore (segfault) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-64468@lists.php.net to get a copy of this message | ||
From: chregu@phant.ch
Operating system: Debian/unstable Linux 2.4.9
PHP version: 4.0CVS-2001-08-28
PHP Bug Type: DOM XML related
Bug description: xpath_eval doesn't work anymore (segfault)
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 bug report at: http://bugs.php.net/?id=12993&edit=1