On 10 Jul 2001, Bug Database wrote:

Sorry, but i cannot feedback, because

The username or password you supplied was incorrect.
Something went wrong updating the database.
---
Bug id #12002

[2001-07-10 06:04:17] [EMAIL PROTECTED]

Great! Thanks for the report. Would it be possible for you
to provide as short as possible of a reproducing script/xml
file, either through the bug report interface or by providing a hyperlink,
or something?

---

--- test.php ---
<?php
$doc = xmldocfile("test.xml");
$xpath_context = $doc->xpath_new_context();

if (!$xpath) {
$xpath = "//child::article/para/segmentedlist/segmenteditem/seg";
}

echo "<br>\n";
echo "xpath: $xpath";
echo "<br>\n<br>\n";

$nodes = xpath_eval($xpath_context, $xpath);
print_r($nodes);

echo "<br>\n<hr>\n";

readfile("test.xml");
?>


--- test.xml ---
<?xml version="1.0" encoding="iso-8859-2"?>
<article id="00008607">
<title>Testing article...</title>
<subtitle>neustale</subtitle>
<artheader>
<date>10.07.2001 11:49</date>
<editor id="ed1">
<honorific/>
<firstname>Jan</firstname>
<surname>Novak</surname>
<othername/>
<affiliation>
<orgname>Cesky 1</orgname>
</affiliation>
</editor>
<revhistory>
<revision>
<date>20010710114913</date>
<revremark/>
</revision>
</revhistory>
</artheader>
<para role="pocasi"> <segmentedlist role="pocasi">
<segmenteditem role="D">
<seg role="min_teplota">12</seg>
<seg role="max_teplota">20</seg>
<seg role="obrazek"/>
</segmenteditem>
</segmentedlist>
</para>
</article>

--- testing ---
OK http://amik.fido.cz:8081/test/xpath.html?xpath=//child::article

SIGSEGV http://amik.fido.cz:8081/test/xpath.html?xpath=child::article
        http://amik.fido.cz:8081/test/xpath.html?xpath=/child/article

I know, this xpath is invalid, but sigsegv is not expected result :-).
Thanx a lot for your help.



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