Fixed bug #12012: admin_get_tables() method is using PHP5.3-deprecated function mysql...
authorXavier Perseguers <typo3@perseguers.ch>
Sun, 20 Sep 2009 06:09:48 +0000 (06:09 +0000)
committerXavier Perseguers <typo3@perseguers.ch>
Sun, 20 Sep 2009 06:09:48 +0000 (06:09 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Extensions/dbal/trunk@24646 735d13b6-9817-0410-8766-e36946ffe9aa

typo3/sysext/dbal/ChangeLog
typo3/sysext/dbal/class.ux_t3lib_db.php

index 9a5e647..6feb27e 100644 (file)
@@ -1,3 +1,7 @@
+2009-09-20  Xavier Perseguers  <typo3@perseguers.ch>
+
+       * Fixed bug #12012: admin_get_tables() method is using PHP5.3-deprecated function mysql_list_tables
+
 2009-09-18  Xavier Perseguers  <typo3@perseguers.ch>
 
        * Fixed bug #11984: Remove reference operators for objects
index 270ad5f..5d2695b 100644 (file)
@@ -1750,7 +1750,7 @@ class ux_t3lib_DB extends t3lib_DB {
                // Getting real list of tables:
                switch($this->handlerCfg['_DEFAULT']['type'])   {
                        case 'native':
-                               $tables_result = mysql_list_tables(TYPO3_db, $this->handlerInstance['_DEFAULT']['link']);
+                               $tables_result = mysql_query('SHOW TABLE STATUS FROM `' . TYPO3_db . '`', $this->handlerInstance['_DEFAULT']['link']);
                                if (!$this->sql_error())        {
                                        while ($theTable = $this->sql_fetch_assoc($tables_result)) {
                                                $whichTables[current($theTable)] = current($theTable);