]> git.sesse.net Git - xml-template/blobdiff - php5-swig/attribute-empty.php
Fix some use-after-frees in the C++11 version.
[xml-template] / php5-swig / attribute-empty.php
index 98555a24909ac8ee7c8c1e1070581f03a49ae9c4..ce4e532ecfdc716789ccbc4888cbe247ae52cf35 100644 (file)
@@ -1,6 +1,5 @@
 <?php
-
-dl("XML_Template_SWIG.so");
+include("xml-template.php");
 
 # NULL values are ignored, but having one helps pointing out that
 # the array given is non-associative
@@ -9,5 +8,5 @@ $doc = XML_Template_process_file('../xml/clone.xml', array(
        'color' => 'blue',
        '#things' => array(NULL)
 ), true);
-output_to_fd($doc, 1);
+print XML_Template_convert_doc_to_string($doc);
 ?>