]> git.sesse.net Git - xml-template/blobdiff - php7-swig/attribute-empty.php
Update the PHP SWIG version to PHP 7, with various crash fixes, too.
[xml-template] / php7-swig / attribute-empty.php
diff --git a/php7-swig/attribute-empty.php b/php7-swig/attribute-empty.php
new file mode 100644 (file)
index 0000000..ce4e532
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+include("xml-template.php");
+
+# NULL values are ignored, but having one helps pointing out that
+# the array given is non-associative
+
+$doc = XML_Template_process_file('../xml/clone.xml', array(
+       'color' => 'blue',
+       '#things' => array(NULL)
+), true);
+print XML_Template_convert_doc_to_string($doc);
+?>