mirror of
https://github.com/weechat/weechat.git
synced 2026-07-01 15:26:37 +02:00
php: add detection of PHP 8.0, fix compilation errors
This commit is contained in:
@@ -119,7 +119,7 @@ API_FUNC(register)
|
||||
php_registered_script->name);
|
||||
API_RETURN_ERROR;
|
||||
}
|
||||
if (zend_parse_parameters (ZEND_NUM_ARGS() TSRMLS_CC, "SSSSSzS",
|
||||
if (zend_parse_parameters (ZEND_NUM_ARGS(), "SSSSSzS",
|
||||
&name, &author, &version, &license, &description,
|
||||
&shutdown_func, &charset) == FAILURE)
|
||||
{
|
||||
|
||||
@@ -1246,8 +1246,18 @@ php_weechat_sapi_error (int type, const char *format, ...)
|
||||
}
|
||||
}
|
||||
|
||||
#if PHP_VERSION_ID >= 70100
|
||||
/* PHP >= 7.1 */
|
||||
#if PHP_VERSION_ID >= 80000
|
||||
/* PHP >= 8.0 */
|
||||
void
|
||||
php_weechat_log_message (const char *message, int syslog_type_int)
|
||||
{
|
||||
/* make C compiler happy */
|
||||
(void) syslog_type_int;
|
||||
|
||||
php_weechat_ub_write (message, strlen (message));
|
||||
}
|
||||
#elif PHP_VERSION_ID >= 70100
|
||||
/* 7.1 <= PHP < 8.0 */
|
||||
void
|
||||
php_weechat_log_message (char *message, int syslog_type_int)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user