[Thu Apr 20 10:55:18 2006] [error] PHP Fatal error: Maximum execution time of 30 seconds exceeded in d:\\...\\libraries\\string.lib.php on line 90
Вот код из этого файла. 90-я строка помечена жирным
function PMA_substr($string, $start, $length = 2147483647)
{
if (defined('PMA_MULTIBYTE_ENCODING') || $GLOBALS['PMA_allow_mbstr']) {
return mb_substr($string, $start, $length);
} else {
return substr($string, $start, $length);
}
}
В common.lib есть такая строка
define('PMA_MULTIBYTE_ENCODING', 1);
заглядываю периодически в error.log, увидел такую строку
Notice: Undefined offset: 1 in d:\\...\\libraries\\common.lib.php on line 925
common.lib, функция PMA_mysqlDie, строка помечена жирным:
if (substr($error_message, 1, 4) == '1062') {
// get the duplicate entry
// get table name
// TODO: what would be the best delimiter, while avoiding
// special characters that can become high-ascii after editing,
// depending upon which editor is used by the developer?
$error_table = array();
preg_match('@ALTER\sTABLE\s\`([^\`]+)\`@iu', $the_query, $error_table);
$error_table = $error_table[1];
// get fields
$error_fields = array();
preg_match('@\(([^\)]+)\)@i', $the_query, $error_fields);
$error_fields = explode(',', $error_fields[1]);