]> git.sesse.net Git - xml-template/blobdiff - php5-swig/structure.php
Fix some use-after-frees in the C++11 version.
[xml-template] / php5-swig / structure.php
index 2bc8c442dfb9441edb57c0922dbd00c7d1d62e8a..de2e3ab8aeffecc0108941679699c78c2f313945 100644 (file)
@@ -1,6 +1,6 @@
 <?php
+include("xml-template.php");
 
-dl("XML_Template_SWIG.so");
 $doc = XML_Template_process_file('../xml/structure.xml', array(
        '#outer' => array(
                array( '#inner' => 'One' ),
@@ -8,5 +8,5 @@ $doc = XML_Template_process_file('../xml/structure.xml', array(
                array( '#inner' => 'Three' ),
        )
 ), true);
-output_to_fd_and_free($doc, 1);
+print XML_Template_convert_doc_to_string($doc);
 ?>