Permalink
Browse files

Support PHP 5.6.

  • Loading branch information...
1 parent aad2e4e commit 3b62eedfd764d7a9c28327444f0fcc5ea19d232c @tpenguin tpenguin committed Apr 28, 2014
Showing with 4 additions and 4 deletions.
  1. +4 −4 test.php
View
@@ -50,15 +50,15 @@
# SSL
$sslx = false;
-if ( function_exists('curl_init') && !eregi('curl_init', $disabled_functions) && $curl_version = curl_version())
+if ( function_exists('curl_init') && !preg_match('/curl_init/i', $disabled_functions) && $curl_version = curl_version())
{
- if (eregi('openssl', @$curl_version['ssl_version'] ))
+ if (preg_match('/(securetransport|openssl)/i', @$curl_version['ssl_version'] ))
{
$sslx = true;
}
} else {
if ( phpversion() >= '4.3.0' && function_exists("fsockopen") &&
- !eregi('fsockopen', $disabled_functions) && function_exists("openssl_public_decrypt"))
+ !preg_match('/fsockopen/i', $disabled_functions) && function_exists("openssl_public_decrypt"))
$sslx = true;
}
@@ -89,7 +89,7 @@
###############################################################
# MYSQL
-if(is_callable("mysql_connect") && is_callable("mysql_get_client_info") && mysql_get_client_info() >= 4)
+if(is_callable("mysql_connect"))
{
$mysql['font'] = "FFFFFF";
$mysql['back'] = "009900";

0 comments on commit 3b62eed

Please sign in to comment.