[TYPO3-core] Warning in t3lib_db line 1047
Stefan Geith
typo3dev2008.nospam1 at geithware.de
Wed Jun 11 17:25:14 CEST 2008
Hi Devs,
when I update sites of my clients to 4.2.1
I get on some site warnings like this:
Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource
in /htdocs/typo3/typo3_src-4.2.1/t3lib/class.t3lib_db.php on line 1047
SourceCode:
$columns_res = mysql_query('SHOW CHARACTER SET', $this->link);
while ($row = mysql_fetch_assoc($columns_res)) {
$output[$row['Charset']] = $row;
}
Maybe the installed mySql doesnt support this query, so
I changed these lines to:
$columns_res = mysql_query('SHOW CHARACTER SET', $this->link);
if ($columns_res) while ($row = mysql_fetch_assoc($columns_res)) {
$output[$row['Charset']] = $row;
}
The sites now work without problems.
--------
Does anybody know what impact it has, if no
charsets can be read from mysql ?
Should the above change get applied to the core ?
Should i report a Bug ?
I found http://bugs.typo3.org/view.php?id=3794 but
this doens't seem to be exactly the same.
--------
Stefan
More information about the TYPO3-team-core
mailing list