Use PHP_VERSION_ID when checking for PHP version signature

PHP_API_VERSION is in a date format.
Merge pull request #31 from kabel/patch-1

Use PHP_VERSION_ID when checking for PHP version signature