Support for PHP version < 5.3.0

Signed-off-by: Orangescrum <developer@orangescrum.com>