Do not use functions not supported by older PHP.
This commit is contained in:
@@ -14,6 +14,8 @@ $Source$
|
|||||||
functions.
|
functions.
|
||||||
* libraries/auth/cookie.auth.lib.php: Display PMA_errors on login form.
|
* libraries/auth/cookie.auth.lib.php: Display PMA_errors on login form.
|
||||||
* Documentation.html: Add anchors to configuration directives.
|
* Documentation.html: Add anchors to configuration directives.
|
||||||
|
* libraries/sqlparser.lib.php: Do not use functions not supported by older
|
||||||
|
PHP.
|
||||||
|
|
||||||
2005-11-28 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
2005-11-28 Sebastian Mendel <cybot_tm@users.sourceforge.net>
|
||||||
* libraries/Theme.class.php, libraries/Theme_Manager.class.php:
|
* libraries/Theme.class.php, libraries/Theme_Manager.class.php:
|
||||||
|
@@ -389,7 +389,8 @@ if ( ! defined( 'PMA_MINIMUM_COMMON' ) ) {
|
|||||||
$is_float_digit = $c == '.';
|
$is_float_digit = $c == '.';
|
||||||
$is_float_digit_exponent = FALSE;
|
$is_float_digit_exponent = FALSE;
|
||||||
|
|
||||||
// Nijel: Fast skip is especially needed for huge BLOB data:
|
// 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) {
|
if ($is_hex_digit) {
|
||||||
$count2++;
|
$count2++;
|
||||||
$pos = strspn($sql, '0123456789abcdefABCDEF', $count2);
|
$pos = strspn($sql, '0123456789abcdefABCDEF', $count2);
|
||||||
@@ -400,6 +401,7 @@ if ( ! defined( 'PMA_MINIMUM_COMMON' ) ) {
|
|||||||
if ($pos > $count2) $count2 = $pos;
|
if ($pos > $count2) $count2 = $pos;
|
||||||
unset($pos);
|
unset($pos);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
while (($count2 < $len) && PMA_STR_isSqlIdentifier(PMA_substr($sql, $count2, 1), ($is_sql_variable || $is_digit))) {
|
while (($count2 < $len) && PMA_STR_isSqlIdentifier(PMA_substr($sql, $count2, 1), ($is_sql_variable || $is_digit))) {
|
||||||
$c2 = PMA_substr($sql, $count2, 1);
|
$c2 = PMA_substr($sql, $count2, 1);
|
||||||
|
Reference in New Issue
Block a user