diff options
Diffstat (limited to 'other/php.php')
-rwxr-xr-x | other/php.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/other/php.php b/other/php.php index e35665b..f1f3a2a 100755 --- a/other/php.php +++ b/other/php.php @@ -5,6 +5,9 @@ // $options = LIBXML_NONET; $options = LIBXML_NOENT; +/* LIBXML_NOENT doesn't have any effect but + libxml_disable_entity_loader(true) works */ + $xml = simplexml_load_file($argv[1], "SimpleXMLElement", $options); $data = (string)$xml; echo strlen($data); |