flaupretre / pecl-pcs

PHP Code Service
Other
25 stars 4 forks source link

Fix build where ZEND_FASTCALL doesn't match default call conv #15

Closed cmb69 closed 4 years ago

cmb69 commented 4 years ago

As of PHP 7.3.0, internal function handlers use the ZEND_FASTCALL calling convention. On architectures where this doesn't match the default calling convention, the build fails (or even worse things may happen during runtime).

We fix this by typedeffing our own pcs_zif_handler according to the PHP version.