]> git.sesse.net Git - xml-template/blob - php7-swig/attribute-empty.php
Fix some use-after-frees in the C++11 version.
[xml-template] / php7-swig / attribute-empty.php
1 <?php
2 include("xml-template.php");
3
4 # NULL values are ignored, but having one helps pointing out that
5 # the array given is non-associative
6
7 $doc = XML_Template_process_file('../xml/clone.xml', array(
8         'color' => 'blue',
9         '#things' => array(NULL)
10 ), true);
11 print XML_Template_convert_doc_to_string($doc);
12 ?>