]> git.mxchange.org Git - mailer.git/blobdiff - inc/revision-functions.php
Caching of expensive PHP functions:
[mailer.git] / inc / revision-functions.php
index 6f2391c69638d214bec4d9b80708d53556414933..a87bfc48862b32e2ab3e7611500a70ad8a13ba8d 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Revsions-Info relevante Funktionen               *
  * -------------------------------------------------------------------- *
- * $Revision:: 1645                                                   $ *
- * $Date:: 2009-12-06 15:30:15 +0100 (Sun, 06 Dec 2009)               $ *
+ * $Revision::                                                        $ *
+ * $Date::                                                            $ *
  * $Tag:: 0.2.1-FINAL                                                 $ *
- * $Author:: quix0r                                                   $ *
+ * $Author::                                                          $ *
  * Needs to be in all Files and every File needs "svn propset           *
  * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2009 by Roland Haeder                           *
+ * Copyright (c) 2009, 2010 by Mailer Developer Team                    *
  * For more information visit: http://www.mxchange.org                  *
  *                                                                      *
  * This program is free software; you can redistribute it and/or modify *
@@ -77,7 +78,7 @@ function getActualVersion ($type = 'Revision') {
 
                                // Get array for mapping information
                                $mapper = array_flip(getSearchFor());
-                               //* DEBUG: */ print('<pre>mapper='.print_r($mapper, true).'</pre>ins_vers=<pre>'.print_r($ins_vers, true).'</pre>');
+                               //* DEBUG: */ debugOutput('<pre>mapper='.print_r($mapper, true).'</pre>ins_vers=<pre>'.print_r($ins_vers, true).'</pre>');
 
                                // Is the content valid?
                                if ((!is_array($ins_vers)) || (count($ins_vers) <= 0) || (!isset($ins_vers[$mapper[$type]])) || (trim($ins_vers[$mapper[$type]]) == '') || ($ins_vers[0]) == 'new') {
@@ -211,7 +212,7 @@ function getArrayFromActualVersion () {
                // Invalid request reply?
                if (!isset($version[11])) {
                        // Cannot continue here
-                       debug_report_bug('Invalid response from check-updates3.php, count should be 10+, is ' . count($version));
+                       debug_report_bug(__FUNCTION__, __LINE__, 'Invalid response from check-updates3.php, count should be 10+, is ' . count($version));
                } // END - if
 
                // Prepare content