]> git.sesse.net Git - xml-template/blobdiff - php5-swig/attribute-empty.php
Add a proper wrapper for php5-swig, which also makes attribute[23] pass. All tests...
[xml-template] / php5-swig / attribute-empty.php
index 5a33f6362aff68fd03abda1b288d9b04c60e9d2d..ba4941ec384e0101fa3af5b623749813fc2aa3e4 100644 (file)
@@ -1,13 +1,12 @@
 <?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
 
-$doc = process_file('../xml/clone.xml', array(
+$doc = XML_Template_process_file('../xml/clone.xml', array(
        'color' => 'blue',
        '#things' => array(NULL)
 ), true);
-output_to_fd_and_free($doc, 1);
+output_to_fd($doc, 1);
 ?>