]> 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 a4c4426eac7deb1f53d5b246b4bf16083645fda4..998cf6646d516c579c0f078a4ef7141427853d5f 100644 (file)
@@ -1,9 +1,9 @@
 <?php
+include("xml-template.php");
 
-dl("XML_Template_SWIG.so");
-$doc = process_file('../xml/namespace2.xml', array( 
+$doc = XML_Template_process_file('../xml/namespace2.xml', array( 
        'title' => 'Namespace tests',
        '#hello' => 'Replaced.',
 ), true);
-output_to_fd_and_free($doc, 1);
+print XML_Template_convert_doc_to_string($doc);
 ?>