I have a query that aliases a bunch of column names, and some of the aliases are on the long side (40-50 characters). Locally, everything works fine, but when I run the same code in the testing environment, the database results are returned with the keys limited to 31 characters.
The query code is pretty much out-of-the-box CI:
$query = $this->database->query($sql);
if ($query->num_rows() > 0) {
$result = $query->result_array();
print_array($result); // pre and print_r
}
Everything I've read suggests PHP doesn't limit the length of an array key so - is this a Codeigniter thing? Or does PHP usually not limit it (is there a setting that can and is here)?