]> git.sesse.net Git - xml-template/blobdiff - php5-swig/include.php
Leak a little less memory in php5-swig.
[xml-template] / php5-swig / include.php
index 5e3ff4e88de30287dc2d16ebeca3162bb84dff7d..a648bb5a6f1b56417802b93bcbe2536dd4cddbcd 100644 (file)
@@ -1,10 +1,10 @@
 <?php
 
 dl("XML_Template_SWIG.so");
-$doc = process_file('../xml/included.xml', array(
+$doc = XML_Template_process_file('../xml/included.xml', array(
        'color' => 'red'
 ), 0);
-$master = process_file('../xml/master.xml', array(
+$master = XML_Template_process_file('../xml/master.xml', array(
        'title' => 'Main HTML title',
        'h1' => 'Nice heading here',
        'contents' => $doc