Fixed warnings when running under PHP versions < 5.4.0.