]> git.sesse.net Git - xml-template/blobdiff - php5-swig/structure.php
Do weird dances to get php5-swig garbage collection going. Something tells me this...
[xml-template] / php5-swig / structure.php
index c3a684e4d67e9cf1f092c313b5762caa0620a6cd..b27a040d7697a4001df18fabcd7db32f89b3d186 100644 (file)
@@ -1,12 +1,12 @@
 <?php
 
 dl("XML_Template_SWIG.so");
-$doc = process_file('../xml/structure.xml', array(
+$doc = XML_Template_process_file('../xml/structure.xml', array(
        '#outer' => array(
                array( '#inner' => 'One' ),
                array( '#inner' => 'Two' ),
                array( '#inner' => 'Three' ),
        )
 ), true);
-output_to_fd_and_free($doc, 1);
+output_to_fd($doc, 1);
 ?>