summaryrefslogtreecommitdiffstats
path: root/frontends/php/include/copt.lib.php
diff options
context:
space:
mode:
authorosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-15 12:53:32 +0000
committerosmiy <osmiy@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2006-11-15 12:53:32 +0000
commite5c765ac713664bdae99dac1c975f4a8b7999c32 (patch)
tree6958b6105333f9012250a1e9c14916b94530cf71 /frontends/php/include/copt.lib.php
parent600abf07f6952ce7f6a1e8417fb31e3202b55894 (diff)
downloadzabbix-e5c765ac713664bdae99dac1c975f4a8b7999c32.tar.gz
zabbix-e5c765ac713664bdae99dac1c975f4a8b7999c32.tar.xz
zabbix-e5c765ac713664bdae99dac1c975f4a8b7999c32.zip
- improved stricted PHP5 supporting (Eugene)
git-svn-id: svn://svn.zabbix.com/trunk@3486 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include/copt.lib.php')
-rw-r--r--frontends/php/include/copt.lib.php29
1 files changed, 22 insertions, 7 deletions
diff --git a/frontends/php/include/copt.lib.php b/frontends/php/include/copt.lib.php
index 00b8c7cd..5e68c377 100644
--- a/frontends/php/include/copt.lib.php
+++ b/frontends/php/include/copt.lib.php
@@ -331,14 +331,29 @@ else
}
else
{
- class COpt
+ if(version_compare(phpversion(),'5.0','<'))
+ {
+ class COpt
+ {
+ /* public static */ function profiling_start($type=NULL) {}
+ /* public static */ function profiling_stop($type=NULL) {}
+ /* public static */ function savesqlrequest($sql) {}
+ /* public static */ function showmemoryusage($descr=null) {}
+ /* public static */ function compare_files_with_menu($menu=null) {}
+ /* public static */ function counter_up($type=NULL) {}
+ }
+ }
+ else
{
- /* public static */ function profiling_start($type=NULL) {}
- /* public static */ function profiling_stop($type=NULL) {}
- /* public static */ function savesqlrequest($sql) {}
- /* public static */ function showmemoryusage($descr=null) {}
- /* public static */ function compare_files_with_menu($menu=null) {}
- /* public static */ function counter_up($type=NULL) {}
+ class COpt
+ {
+ static function profiling_start($type=NULL) {}
+ static function profiling_stop($type=NULL) {}
+ static function savesqlrequest($sql) {}
+ static function showmemoryusage($descr=null) {}
+ static function compare_files_with_menu($menu=null) {}
+ static function counter_up($type=NULL) {}
+ }
}
}