]> git.sesse.net Git - xml-template/blobdiff - php5-swig/include.php
Do weird dances to get php5-swig garbage collection going. Something tells me this...
[xml-template] / php5-swig / include.php
index 5e3ff4e88de30287dc2d16ebeca3162bb84dff7d..92b71d6dca4c07e897251b7f7b49df290bfdf24b 100644 (file)
@@ -1,13 +1,13 @@
 <?php
 
 dl("XML_Template_SWIG.so");
-$doc = process_file('../xml/included.xml', array(
+$doc = XML_Template_process_file('../xml/included.xml', array(
        'color' => 'red'
-), 0);
-$master = process_file('../xml/master.xml', array(
+), false);
+$master = XML_Template_process_file('../xml/master.xml', array(
        'title' => 'Main HTML title',
        'h1' => 'Nice heading here',
        'contents' => $doc
 ), true);
-output_to_fd_and_free($doc, 1);
+output_to_fd($master, 1);
 ?>