Recent build and SimpleXML/XPath

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Recent build and SimpleXML/XPath

Postby vasyap » 01. June 2009 03:03

Hi, I found strange problem in most recent build of XAMPP for Mac OS X, for example, if you try to run the following script:
Code: Select all
$xml = simplexml_load_string("<a>
 <b>
  <c>text</c>
  <c>stuff</c>
 </b>
 <d>
  <c>code</c>
 </d>
</a>");
echo '<pre>';
print_r($xml->xpath('/a/b'));
die;

from command line (e.g. $ /Applications/XAMPP/xamppfiles/bin/php file.php) everything will pass ok, but if you try to access this file from browser, PHP will crash without explanation. How can I avoid this (is anybody else met this too)?
vasyap
 
Posts: 1
Joined: 01. June 2009 02:59

Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 4 guests