Module: nagvis Branch: master Commit: 0c63f69191a08878aaf81e462e25be6ced48a24e URL: http://nagvis.git.sourceforge.net/git/gitweb.cgi?p=nagvis/nagvis/commit/?id=0c63f69191a08878aaf81e462e25be6ced48a24e
Author: Roman Kyrylych <[email protected]> Date: Tue Aug 11 17:04:36 2009 +0300 Fixed memory overflow caused by calling method_exists() on a class Signed-off-by: Roman Kyrylych <[email protected]> --- share/nagvis/includes/classes/GlobalMainCfg.php | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/share/nagvis/includes/classes/GlobalMainCfg.php b/share/nagvis/includes/classes/GlobalMainCfg.php index 45dba34..570276d 100644 --- a/share/nagvis/includes/classes/GlobalMainCfg.php +++ b/share/nagvis/includes/classes/GlobalMainCfg.php @@ -495,7 +495,7 @@ class GlobalMainCfg { //$this->validConfig['backend']['options'][$backend] = $class->getValidConfig(); // I'd prefer to use the above but for the moment I use the fix below - if(method_exists($class, 'getValidConfig')) { + if (is_callable(array($class, 'getValidConfig'))) { $this->validConfig['backend']['options'][$backend] = call_user_func(Array('GlobalBackend'.$backend, 'getValidConfig')); //$this->validConfig['backend']['options'][$backend] = call_user_func('GlobalBackend'.$backend.'::getValidConfig'); } ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Nagvis-checkins mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagvis-checkins
