我使用 cakephp2.0,在一台服务器上, cakephp 从 Database 返回数据,例如:
Array
(
[0] => Array
(
[users] => Array
(
[user_id] => 1
[username] => admin
[password] => 90c4c3e64eb085da3a9feccc38489281
[admin_role] => 24
[datetime_reg_time] =>
[datetime_last_login] => 2012-04-24 15:15:55
[email] =>
)
[roles] => Array(...)
但另一台服务器返回的数据是:
Array
(
[0] => Array
(
[0] => Array
(
[user_id] => 1
[username] => admin
[password] => 90c4c3e64eb085da3a9feccc38489281
[admin_role] => 24
[datetime_reg_time] =>
[datetime_last_login] => 2012-04-23 11:41:35
[email] =>
[roleId] => 24
[roleName] => 管理员
[rolePermissions] => 60,61,62,63,64,65,66,67,68,69,70,71,72,93,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,94,95,96,97,98,99,100,101,109,112,108,107
)
)
我不知道为什么.....不是PDO的版本吗?