Backward compatibility with older PHP version.