]> git.sesse.net Git - xml-template/blob - php5-swig/structure.php
Leak a little less memory in php5-swig.
[xml-template] / php5-swig / structure.php
1 <?php
2
3 dl("XML_Template_SWIG.so");
4 $doc = XML_Template_process_file('../xml/structure.xml', array(
5         '#outer' => array(
6                 array( '#inner' => 'One' ),
7                 array( '#inner' => 'Two' ),
8                 array( '#inner' => 'Three' ),
9         )
10 ), true);
11 output_to_fd_and_free($doc, 1);
12 ?>