Skip to content

Instantly share code, notes, and snippets.

@patrickmaciel
Created August 13, 2013 19:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save patrickmaciel/6224655 to your computer and use it in GitHub Desktop.
Save patrickmaciel/6224655 to your computer and use it in GitHub Desktop.
Apache 2.2.6 crash with this error in PHP 5.4.17
<?php
foreach ($teams as $team_key => $team) {
$table_employees[$team_key] = array();
$table_employees[$team_key]['team'] = $team_key;
$table_employees[$team_key]['employees'] = array();
foreach ($team as $employee) {
$table_employees[$team_key]['employees'][$employee['id']]['id'] = $employee['id'];
$table_employees[$team_key]['employees'][$employee['id']]['name'] = $employee['name'];
$table_employees[$team_key]['employees'][$employee['id']]['group'] = $employee['group'];
foreach ($table as $tb) {
if ($team_key == $tb['team']) {
$table_employees[$team_key]['employees'][$employee['id']]['tip'] = $tb[] // ERROR LINE (without ';')
}
}
exit;
foreach ($employeeGroups as $key => $group) {
if (Inflector::slug(strtolower($employee['group']), '-') == Inflector::slug(strtolower($group['EmployeeGroup']['name']), '-')) {
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment