]> git.sesse.net Git - xml-template/blobdiff - php5-swig/clone.php
Add a proper wrapper for php5-swig, which also makes attribute[23] pass. All tests...
[xml-template] / php5-swig / clone.php
index abe0e307c3ec6d62317843cdf41117f5246c29c7..ab0ed7a31e4d73aebb06a497fdd9c2d2f57456cc 100644 (file)
@@ -1,7 +1,7 @@
 <?php
+include("xml-template.php");
 
-dl("XML_Template_SWIG.so");
-$doc = process_file('../xml/clone.xml', array( 
+$doc = XML_Template_process_file('../xml/clone.xml', array( 
        'color' => 'blue',
        '#things' => array(
                array( 'li' => 'Raindrops on roses' ),
@@ -10,7 +10,7 @@ $doc = process_file('../xml/clone.xml', array(
                array( 'li' => 'Warm, woolen mittens' ) 
        )
 ), true);
-output_to_fd_and_free($doc, 1);
+output_to_fd($doc, 1);
 
 ?>