|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-08-28 04:21 UTC] chregu at phant dot 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
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Dec 15 09:00:01 2025 UTC |
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?