- // Try to be backward compat with php < 4.2 (are we not being nice ?)\r
- $phpversion = phpversion();\r
- if($phpversion[0] == '4' && $phpversion[2] < 2)\r
- {\r
- // give an opportunity to user to specify where to include other files from\r
- if(!defined('PHP_XMLRPC_COMPAT_DIR'))\r
- {\r
- define('PHP_XMLRPC_COMPAT_DIR',dirname(__FILE__).'/compat/');\r
- }\r
- if($phpversion[2] == '0')\r
- {\r
- if($phpversion[4] < 6)\r
- {\r
- include(PHP_XMLRPC_COMPAT_DIR.'is_callable.php');\r
- }\r
- include(PHP_XMLRPC_COMPAT_DIR.'is_scalar.php');\r
- include(PHP_XMLRPC_COMPAT_DIR.'array_key_exists.php');\r
- include(PHP_XMLRPC_COMPAT_DIR.'version_compare.php');\r
- }\r
- include(PHP_XMLRPC_COMPAT_DIR.'var_export.php');\r
- include(PHP_XMLRPC_COMPAT_DIR.'is_a.php');\r
- }\r
-\r