]> git.sesse.net Git - xml-template/blobdiff - php5-swig/attribute2.php
Fix some use-after-frees in the C++11 version.
[xml-template] / php5-swig / attribute2.php
index 4b33237e2a9bd96740c79def77ec5f11b5837961..8d6c99bd5577017b7e639988cf243a3771aaa1ee 100644 (file)
@@ -1,6 +1,6 @@
 <?php
+include("xml-template.php");
 
-dl("XML_Template_SWIG.so");
 $doc = XML_Template_process_file('../xml/clone.xml', array(
        'color' => 'blue',
        '#things' => XML_Template_alternate('li/class', array(
@@ -10,5 +10,5 @@ $doc = XML_Template_process_file('../xml/clone.xml', array(
                array( 'li' => 'Warm, woolen mittens' ),
        ), array('odd', 'even'))
 ), true);
-output_to_fd_and_free($doc, 1);
+print XML_Template_convert_doc_to_string($doc);
 ?>