]> git.sesse.net Git - xml-template/blobdiff - php5-swig/namespace2.php
Fix some use-after-frees in the C++11 version.
[xml-template] / php5-swig / namespace2.php
index 04622cf99ee036a339c6e349579c748fdf6e1d20..998cf6646d516c579c0f078a4ef7141427853d5f 100644 (file)
@@ -1,9 +1,9 @@
 <?php
+include("xml-template.php");
 
-dl("XML_Template_SWIG.so");
 $doc = XML_Template_process_file('../xml/namespace2.xml', array( 
        'title' => 'Namespace tests',
        '#hello' => 'Replaced.',
 ), true);
-output_to_fd($doc, 1);
+print XML_Template_convert_doc_to_string($doc);
 ?>