ID: 12993
Updated by: chregu
Reported By: [EMAIL PROTECTED]
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] [EMAIL PROTECTED]

ah forgot to mention:
the script worked in 4.0.6



------------------------------------------------------------------------

[2001-08-28 04:21:14] [EMAIL PROTECTED]

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


-- 
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]

Reply via email to