]> git.sesse.net Git - xml-template/blobdiff - php5-swig/xml-template.php
Update the PHP SWIG version to PHP 7, with various crash fixes, too.
[xml-template] / php5-swig / xml-template.php
diff --git a/php5-swig/xml-template.php b/php5-swig/xml-template.php
deleted file mode 100644 (file)
index 289b9c7..0000000
+++ /dev/null
@@ -1,17 +0,0 @@
-<?php
-include("XML_Template_SWIG.php");
-
-# FIXME: use varargs here
-function XML_Template_alternate($tag, $array, $elems)
-{
-       $num = count($elems);
-
-       for ($i = 0, $j = 0; $i < count($array); $i++) {
-               if (isset($array[$i])) {
-                       $array[$i][$tag] = $elems[$j++ % $num];
-               }
-       }
-
-       return $array;
-}
-?>