--TEST-- mysql_list_tables() --SKIPIF-- --FILE-- $tlist) foreach ($tlist as $k => $table) $list1[] = $table; foreach ($tables_query as $k => $tlist) foreach ($tlist as $k => $table) $list2[] = $table; if ($list1 !== $list2) { printf("[009] Got different results for mysql_list_tables() and SHOW TABLES\n"); var_dump($list1); var_dump($list2); } if (!in_array('test', $list1)) printf("[010] Table lists seem to be wrong. Check manually.\n"); mysql_close($link); print "done!\n"; ?> --CLEAN-- --EXPECTF-- Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in %s on line %d done!