In some cases, runing
$result = $employees->sparqlQuery($qs, 'xml');
kind of query doesn't return the expected XML string.
I tracked down this problem to originate in
SparqlEngine.php, line #1260:
$result = simplexml_load_string($result);
return $result->asXML();
As I understand, this code should load the constructed
XML string an object and then serialize it again and
return as a result. Sometimes it fails, maybe because
of the ill-formatted string.
I wonder why is this conversion necessary at all? I
think DOM should be used in this method.
Logged In: NO
Oh, and it looks like it is encoding. The source RDF file is
in UTF-8, and the bug only occurs when there are non-Latin
characters in the result.
Logged In: YES
user_id=1121713
Originator: NO
Can you reproduce the error with a current version?
If yes, please attach a test script that reproduces the error.