]> git.sesse.net Git - xml-template/blob - php5-swig/attribute-empty.php
Fix a possible use-after-free in the C++11 version; substitution could remove an...
[xml-template] / php5-swig / attribute-empty.php
1 <?php
2
3 dl("XML_Template_SWIG.so");
4
5 # NULL values are ignored, but having one helps pointing out that
6 # the array given is non-associative
7
8 $doc = XML_Template_process_file('../xml/clone.xml', array(
9         'color' => 'blue',
10         '#things' => array(NULL)
11 ), true);
12 output_to_fd_and_free($doc, 1);
13 ?>