FREEPBX-7474 PHP 5.4 compatibility