|
@@ 14-23 (lines=10) @@
|
| 11 |
|
|
| 12 |
|
class phpthumb_functions { |
| 13 |
|
|
| 14 |
|
static function user_function_exists($functionname) { |
| 15 |
|
if (function_exists('get_defined_functions')) { |
| 16 |
|
static $get_defined_functions = array(); |
| 17 |
|
if (empty($get_defined_functions)) { |
| 18 |
|
$get_defined_functions = get_defined_functions(); |
| 19 |
|
} |
| 20 |
|
return in_array(strtolower($functionname), $get_defined_functions['user']); |
| 21 |
|
} |
| 22 |
|
return function_exists($functionname); |
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
|
| 26 |
|
static function builtin_function_exists($functionname) { |
|
@@ 26-35 (lines=10) @@
|
| 23 |
|
} |
| 24 |
|
|
| 25 |
|
|
| 26 |
|
static function builtin_function_exists($functionname) { |
| 27 |
|
if (function_exists('get_defined_functions')) { |
| 28 |
|
static $get_defined_functions = array(); |
| 29 |
|
if (empty($get_defined_functions)) { |
| 30 |
|
$get_defined_functions = get_defined_functions(); |
| 31 |
|
} |
| 32 |
|
return in_array(strtolower($functionname), $get_defined_functions['internal']); |
| 33 |
|
} |
| 34 |
|
return function_exists($functionname); |
| 35 |
|
} |
| 36 |
|
|
| 37 |
|
|
| 38 |
|
static function version_compare_replacement_sub($version1, $version2, $operator='') { |