laruence / taint

Taint is a PHP extension, used for detecting XSS codes
Other
611 stars 128 forks source link

PHP 7.3: Use "fastcall" calling convention #63

Closed Jan-E closed 6 years ago

Jan-E commented 6 years ago

See https://github.com/laruence/taint/commit/9debfe9682d22e172906cd2e7754a8380bf13453#commitcomment-29510740

laruence commented 6 years ago

merged, thanks

Jan-E commented 6 years ago
diff --git a/php_taint.h b/php_taint.h
index 000902c..5b30434 100644
--- a/php_taint.h
+++ b/php_taint.h
@@ -105,7 +105,11 @@ PHP_FUNCTION(taint_dirname);
 PHP_FUNCTION(taint_basename);
 PHP_FUNCTION(taint_pathinfo);

+#if PHP_VERSION_ID >= 70300
+typedef zif_handler php_func;
+#else
 typedef void (*php_func)(INTERNAL_FUNCTION_PARAMETERS);
+#endif

 ZEND_BEGIN_MODULE_GLOBALS(taint)
    zend_bool enable;

works OK