]> git.sesse.net Git - xml-template/blobdiff - php5-swig/namespace.php
Fix some use-after-frees in the C++11 version.
[xml-template] / php5-swig / namespace.php
index f17fb7460926488b5a71c4201945e9b0bd92608a..04d2faccf5108462dee39c6b13db6d7bb14353de 100644 (file)
@@ -1,6 +1,6 @@
 <?php
+include("xml-template.php");
 
-dl("XML_Template_SWIG.so");
 $doc = XML_Template_process_file('../xml/namespace.xml', array( 
        'title' => 'Namespace tests',
        '#hello' => 'Hello world!',
@@ -8,5 +8,5 @@ $doc = XML_Template_process_file('../xml/namespace.xml', array(
        'tagname' => 'foo',
        '#moretest' => 'bar'
 ), true);
-output_to_fd_and_free($doc, 1);
+print XML_Template_convert_doc_to_string($doc);
 ?>