Bug #12993 Updated: xpath_eval doesn't work anymore (segfault)
| From: | mfischer@php.net | Date: | Fri, 30 Nov 2001 13:12:29 +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-72136@lists.php.net to get a copy of this message | ||
ID: 12993
Updated by: mfischer
Reported By: chregu@phant.ch
Old Status: Feedback
Status: Assigned
Bug Type: DOM XML related
Operating System: Debian/unstable Linux 2.4.9
PHP Version: 4.0CVS-2001-08-28
Old Assigned To:
Assigned To: mfischer
New Comment:
Update: fix is comming, assigning to me.
Previous Comments:
------------------------------------------------------------------------
[2001-11-21 20:11:30] mfischer@php.net
Can you try latest RC and see if the problem still exists
http://www.php.net/~zeev/php-4.1.0RC3.tar.gz
Feedback.
------------------------------------------------------------------------
[2001-08-28 04:43:24] chregu@php.net
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?
------------------------------------------------------------------------
[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