summaryrefslogtreecommitdiff
path: root/other/php.php
diff options
context:
space:
mode:
Diffstat (limited to 'other/php.php')
-rwxr-xr-xother/php.php3
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);