Updates for php 5.4 +

Signed-off-by: DavidJClark <david@noticeabledesigns.com>