Added support for PHP version lower than 4.3.