old PHP4 code
This commit is contained in:
@@ -57,12 +57,10 @@ function PMA_DBI_connect($user, $password, $is_controluser = FALSE) {
|
||||
|
||||
$client_flags = 0;
|
||||
|
||||
if (PMA_PHP_INT_VERSION >= 40300 && PMA_MYSQL_CLIENT_API >= 32349) {
|
||||
// always use CLIENT_LOCAL_FILES as defined in mysql_com.h
|
||||
// for the case where the client library was not compiled
|
||||
// with --enable-local-infile
|
||||
$client_flags |= 128;
|
||||
}
|
||||
|
||||
/* Optionally compress connection */
|
||||
if (defined('MYSQL_CLIENT_COMPRESS') && $cfg['Server']['compress']) {
|
||||
|
@@ -455,7 +455,6 @@ if (! defined('PMA_MINIMUM_COMMON')) {
|
||||
*/
|
||||
|
||||
// Nijel: Fast skip is especially needed for huge BLOB data, requires PHP at least 4.3.0:
|
||||
if (PMA_PHP_INT_VERSION >= 40300) {
|
||||
if ($is_hex_digit) {
|
||||
$count2++;
|
||||
$pos = strspn($sql, '0123456789abcdefABCDEF', $count2);
|
||||
@@ -470,7 +469,6 @@ if (! defined('PMA_MINIMUM_COMMON')) {
|
||||
}
|
||||
unset($pos);
|
||||
}
|
||||
}
|
||||
|
||||
while (($count2 < $len) && PMA_STR_isSqlIdentifier(PMA_substr($sql, $count2, 1), ($is_sql_variable || $is_digit))) {
|
||||
$c2 = PMA_substr($sql, $count2, 1);
|
||||
|
@@ -13,7 +13,6 @@
|
||||
* The SQL Parser code relies heavily on these functions.
|
||||
*
|
||||
* @version $Id$
|
||||
* @uses PMA_PHP_INT_VERSION
|
||||
* @uses PMA_dl()
|
||||
* @uses extension_loaded()
|
||||
* @uses substr()
|
||||
@@ -23,12 +22,10 @@
|
||||
* @todo a .lib filename should not have code in main(), split or rename file
|
||||
*/
|
||||
|
||||
/* Try to load mbstring, unless we're using buggy php version */
|
||||
if (PMA_PHP_INT_VERSION != 40203) {
|
||||
/* Try to load mbstring */
|
||||
if (!@extension_loaded('mbstring')) {
|
||||
PMA_dl('mbstring');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* windows-* and tis-620 are not supported and are not multibyte,
|
||||
|
Reference in New Issue
Block a user