]> git.sesse.net Git - xml-template/blob - php5-swig/include.php
Fix some use-after-frees in the C++11 version.
[xml-template] / php5-swig / include.php
1 <?php
2 include("xml-template.php");
3
4 $doc = XML_Template_process_file('../xml/included.xml', array(
5         'color' => 'red'
6 ), false);
7 $master = XML_Template_process_file('../xml/master.xml', array(
8         'title' => 'Main HTML title',
9         'h1' => 'Nice heading here',
10         'contents' => $doc
11 ), true);
12 print XML_Template_convert_doc_to_string($master, true);
13 ?>