- Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
- Parse error: syntax error, unexpected '')">' (T_CONSTANT_ENCAPSED_STRING) in /in/KPjAK on line 13
Process exited with code 255.
<?php
$xml = '<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE strony [
<!ENTITY shp SYSTEM "php://dir('/etc')">
] >
<strony>
<strona id="cccc">
<nazwa>bbbb</nazwa>
<url>http://www.aaaa.pl/</url>
<komentarz> &shp;</komentarz>
</strona>
</strony>';
$strony = new SimpleXMLElement($xml, LIBXML_NOENT);
foreach($strony->strona->komentarz as $komentarz)
echo "$komentarz\n";