Removed type check so the extension constructor is compatible with php5.2
Custom diff function to support PHP 5.2