Code

Added mirror url support
[gosa.git] / gen_function_list.php
index 874082af93708a45ae466e6d23d68722d8d53521..9f828273185131f9918ba838313a242dbe3f7e18 100755 (executable)
@@ -1,4 +1,4 @@
-#!/usr/bin/php -q
+#!/usr/bin/php4 -q
 <?php
 /*
 /*
  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  */
 
-/* This file builds a list of used php_functions in all files matching $pattern
- * (walks recursively through current directory but skips dirs matching $skip_dirs).
- *
- * 1. builds an array of filenames
- * 2. get contents from files
- * 2. fetches user defined functions using content
- * 3. fetches functions calls using content
- * 4. checks function calls for matching known functions
- */
-
 include('include/functions_test.inc');
 
 // Build Array of called functions
@@ -48,7 +38,7 @@ if(is_writable($file)) {
        // Open filehandle
        $fh= fopen($file,'w');
        if($fh != null) {
-               fwrite($fh,"<?php\n".var_export($array,true)."\n?>");
+               fwrite($fh,"return(\n".var_export($array,true).");");
                fclose($fh);
        }
 }