hightman/scws

php8.0.0 编译错误 1.2.3

Closed this issue · 3 comments

/tmp/scws-1.2.2/phpext/php_scws.c: In function 'php_scws_dtor':
/tmp/scws-1.2.2/phpext/php_scws.c:145:6: error: 'rsrc' undeclared (first use in this function)
if (rsrc->ptr)
^
/tmp/scws-1.2.2/phpext/php_scws.c:145:6: note: each undeclared identifier is reported only once for each function it appears in
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zm_startup_scws':
/tmp/scws-1.2.2/phpext/php_scws.c:191:72: error: expected ')' before 'TSRMLS_CC'
scws_class_entry_ptr = zend_register_internal_class(&scws_class_entry TSRMLS_CC);
^
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zif_scws_open':
/tmp/scws-1.2.2/phpext/php_scws.c:258:43: error: 'TSRMLS_C' undeclared (first use in this function)
ps = (struct php_scws *)_php_create_scws(TSRMLS_C);
^
/tmp/scws-1.2.2/phpext/php_scws.c:260:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't create new scws handler");
^
/tmp/scws-1.2.2/phpext/php_scws.c:260:25: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zif_scws_new':
/tmp/scws-1.2.2/phpext/php_scws.c:271:43: error: 'TSRMLS_C' undeclared (first use in this function)
ps = (struct php_scws *)_php_create_scws(TSRMLS_C);
^
/tmp/scws-1.2.2/phpext/php_scws.c:273:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Can't create new scws object");
^
/tmp/scws-1.2.2/phpext/php_scws.c:273:25: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c:278:2: warning: passing argument 4 of 'add_property_resource_ex' makes pointer from integer without a cast [enabled by default]
add_property_resource(return_value, "handle", ps->rsrc_id);
^
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:493:15: note: expected 'struct zend_resource *' but argument is of type 'int'
ZEND_API void add_property_resource_ex(zval *arg, const char *key, size_t key_len, zend_resource *r);
^
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zif_scws_close':
/tmp/scws-1.2.2/phpext/php_scws.c:288:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: expected 'struct zend_string *' but argument is of type 'char '
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:288:3: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void *)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:288:86: warning: comparison between pointer and integer [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:289:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to find the handle property");
^
/tmp/scws-1.2.2/phpext/php_scws.c:289:26: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c:294:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &object) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:294:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:298:26: error: expected expression before 'struct'
ZEND_FETCH_RESOURCE(ps, struct php_scws *, tmp, -1, PHP_SCWS_OBJECT_TAG, le_scws);
^
/tmp/scws-1.2.2/phpext/php_scws.c:300:2: warning: passing argument 1 of 'zend_list_delete' makes pointer from integer without a cast [enabled by default]
zend_list_delete(ps->rsrc_id);
^
In file included from /usr/local/php80/include/php/Zend/zend_API.h:26:0,
from /usr/local/php80/include/php/main/php.h:35,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_list.h:57:28: note: expected 'struct zend_resource *' but argument is of type 'int'
ZEND_API int ZEND_FASTCALL zend_list_delete(zend_resource *res);
^
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zif_scws_set_charset':
/tmp/scws-1.2.2/phpext/php_scws.c:313:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: expected 'struct zend_string *' but argument is of type 'char '
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:313:3: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void *)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:313:86: warning: comparison between pointer and integer [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:314:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to find the handle property");
^
/tmp/scws-1.2.2/phpext/php_scws.c:314:26: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c:317:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &cs, &cs_len) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:317:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:321:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &object, &cs, &cs_len) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:321:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:325:26: error: expected expression before 'struct'
ZEND_FETCH_RESOURCE(ps, struct php_scws *, tmp, -1, PHP_SCWS_OBJECT_TAG, le_scws);
^
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zif_scws_add_dict':
/tmp/scws-1.2.2/phpext/php_scws.c:345:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: expected 'struct zend_string *' but argument is of type 'char '
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:345:3: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void *)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:345:86: warning: comparison between pointer and integer [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:346:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to find the handle property");
^
/tmp/scws-1.2.2/phpext/php_scws.c:346:26: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c:349:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &filepath, &filepath_len, &xmode) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:349:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:353:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs|l", &object, &filepath, &filepath_len, &xmode) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:353:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:357:26: error: expected expression before 'struct'
ZEND_FETCH_RESOURCE(ps, struct php_scws *, tmp, -1, PHP_SCWS_OBJECT_TAG, le_scws);
^
/tmp/scws-1.2.2/phpext/php_scws.c:359:50: error: expected ')' before 'TSRMLS_CC'
if (!(fullpath = expand_filepath(filepath, NULL TSRMLS_CC)))
^
/tmp/scws-1.2.2/phpext/php_scws.c:369:38: error: expected ')' before 'TSRMLS_CC'
if (php_check_open_basedir(fullpath TSRMLS_CC)) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:378:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to add the dict file");
^
/tmp/scws-1.2.2/phpext/php_scws.c:378:25: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zif_scws_set_dict':
/tmp/scws-1.2.2/phpext/php_scws.c:396:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: expected 'struct zend_string *' but argument is of type 'char '
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:396:3: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void *)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:396:86: warning: comparison between pointer and integer [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:397:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to find the handle property");
^
/tmp/scws-1.2.2/phpext/php_scws.c:397:26: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c:400:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &filepath, &filepath_len, &xmode) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:400:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:404:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs|l", &object, &filepath, &filepath_len, &xmode) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:404:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:408:26: error: expected expression before 'struct'
ZEND_FETCH_RESOURCE(ps, struct php_scws *, tmp, -1, PHP_SCWS_OBJECT_TAG, le_scws);
^
/tmp/scws-1.2.2/phpext/php_scws.c:410:50: error: expected ')' before 'TSRMLS_CC'
if (!(fullpath = expand_filepath(filepath, NULL TSRMLS_CC)))
^
/tmp/scws-1.2.2/phpext/php_scws.c:420:38: error: expected ')' before 'TSRMLS_CC'
if (php_check_open_basedir(fullpath TSRMLS_CC)) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:429:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to set the dict file");
^
/tmp/scws-1.2.2/phpext/php_scws.c:429:25: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zif_scws_set_rule':
/tmp/scws-1.2.2/phpext/php_scws.c:446:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: expected 'struct zend_string *' but argument is of type 'char '
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:446:3: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void *)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:446:86: warning: comparison between pointer and integer [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:447:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to find the handle property");
^
/tmp/scws-1.2.2/phpext/php_scws.c:447:26: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c:450:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filepath, &filepath_len) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:450:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:454:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &object, &filepath, &filepath_len) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:454:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:458:26: error: expected expression before 'struct'
ZEND_FETCH_RESOURCE(ps, struct php_scws *, tmp, -1, PHP_SCWS_OBJECT_TAG, le_scws);
^
/tmp/scws-1.2.2/phpext/php_scws.c:460:50: error: expected ')' before 'TSRMLS_CC'
if (!(fullpath = expand_filepath(filepath, NULL TSRMLS_CC)))
^
/tmp/scws-1.2.2/phpext/php_scws.c:470:38: error: expected ')' before 'TSRMLS_CC'
if (php_check_open_basedir(fullpath TSRMLS_CC)) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:479:25: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Failed to load the ruleset file");
^
/tmp/scws-1.2.2/phpext/php_scws.c:479:25: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zif_scws_set_ignore':
/tmp/scws-1.2.2/phpext/php_scws.c:495:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: expected 'struct zend_string *' but argument is of type 'char '
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:495:3: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void *)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:495:86: warning: comparison between pointer and integer [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:496:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to find the handle property");
^
/tmp/scws-1.2.2/phpext/php_scws.c:496:26: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c:499:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &boolset) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:499:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:503:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rb", &object, &boolset) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:503:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:507:26: error: expected expression before 'struct'
ZEND_FETCH_RESOURCE(ps, struct php_scws *, tmp, -1, PHP_SCWS_OBJECT_TAG, le_scws);
^
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zif_scws_set_multi':
/tmp/scws-1.2.2/phpext/php_scws.c:522:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: expected 'struct zend_string *' but argument is of type 'char '
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:522:3: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void *)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:522:86: warning: comparison between pointer and integer [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:523:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to find the handle property");
^
/tmp/scws-1.2.2/phpext/php_scws.c:523:26: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c:526:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &multi) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:526:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:530:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rl", &object, &multi) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:530:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:534:26: error: expected expression before 'struct'
ZEND_FETCH_RESOURCE(ps, struct php_scws *, tmp, -1, PHP_SCWS_OBJECT_TAG, le_scws);
^
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zif_scws_set_duality':
/tmp/scws-1.2.2/phpext/php_scws.c:552:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: expected 'struct zend_string *' but argument is of type 'char '
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:552:3: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void *)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:552:86: warning: comparison between pointer and integer [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:553:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to find the handle property");
^
/tmp/scws-1.2.2/phpext/php_scws.c:553:26: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c:556:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "b", &boolset) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:556:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:560:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rb", &object, &boolset) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:560:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:564:26: error: expected expression before 'struct'
ZEND_FETCH_RESOURCE(ps, struct php_scws *, tmp, -1, PHP_SCWS_OBJECT_TAG, le_scws);
^
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zif_scws_send_text':
/tmp/scws-1.2.2/phpext/php_scws.c:579:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: expected 'struct zend_string *' but argument is of type 'char '
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:579:3: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void *)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:579:86: warning: comparison between pointer and integer [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:580:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to find the handle property");
^
/tmp/scws-1.2.2/phpext/php_scws.c:580:26: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c:583:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "z", &text) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:583:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:587:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rz", &object, &text) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:587:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:591:26: error: expected expression before 'struct'
ZEND_FETCH_RESOURCE(ps, struct php_scws *, tmp, -1, PHP_SCWS_OBJECT_TAG, le_scws);
^
/tmp/scws-1.2.2/phpext/php_scws.c:593:2: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default]
convert_to_string_ex(&text);
^
In file included from /usr/local/php80/include/php/Zend/zend.h:27:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_types.h:552:38: note: expected 'const struct zval *' but argument is of type 'struct zval *'
static zend_always_inline zend_uchar zval_get_type(const zval
pz) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:593:2: warning: passing argument 1 of 'zval_get_type' from incompatible pointer type [enabled by default]
convert_to_string_ex(&text);
^
In file included from /usr/local/php80/include/php/Zend/zend.h:27:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_types.h:552:38: note: expected 'const struct zval *' but argument is of type 'struct zval *'
static zend_always_inline zend_uchar zval_get_type(const zval
pz) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:593:2: warning: passing argument 1 of '_convert_to_string' from incompatible pointer type [enabled by default]
convert_to_string_ex(&text);
^
In file included from /usr/local/php80/include/php/Zend/zend.h:357:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_operators.h:262:29: note: expected 'struct zval *' but argument is of type 'struct zval **'
ZEND_API void ZEND_FASTCALL _convert_to_string(zval *op);
^
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zif_scws_get_result':
/tmp/scws-1.2.2/phpext/php_scws.c:615:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: expected 'struct zend_string *' but argument is of type 'char '
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:615:3: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void *)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:615:86: warning: comparison between pointer and integer [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:616:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to find the handle property");
^
/tmp/scws-1.2.2/phpext/php_scws.c:616:26: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c:621:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r", &object) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:621:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:625:26: error: expected expression before 'struct'
ZEND_FETCH_RESOURCE(ps, struct php_scws *, tmp, -1, PHP_SCWS_OBJECT_TAG, le_scws);
^
/tmp/scws-1.2.2/phpext/php_scws.c:635:68: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4
add_assoc_stringl(row, "word", ps->s->txt + cur->off, cur->len, 1);
^
/tmp/scws-1.2.2/phpext/php_scws.c:635:3: error: 'add_assoc_stringl' undeclared (first use in this function)
add_assoc_stringl(row, "word", ps->s->txt + cur->off, cur->len, 1);
^
/tmp/scws-1.2.2/phpext/php_scws.c:639:78: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4
add_assoc_stringl(row, "attr", cur->attr, (cur->attr[1] == '\0' ? 1 : 2), 1);
^
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zif_scws_get_tops':
/tmp/scws-1.2.2/phpext/php_scws.c:661:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: expected 'struct zend_string *' but argument is of type 'char '
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:661:3: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void *)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:661:86: warning: comparison between pointer and integer [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:662:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to find the handle property");
^
/tmp/scws-1.2.2/phpext/php_scws.c:662:26: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c:665:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|ls", &limit, &attr, &attr_len) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:665:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:669:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "r|ls", &object, &limit, &attr, &attr_len) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:669:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:673:26: error: expected expression before 'struct'
ZEND_FETCH_RESOURCE(ps, struct php_scws *, tmp, -1, PHP_SCWS_OBJECT_TAG, le_scws);
^
/tmp/scws-1.2.2/phpext/php_scws.c:684:45: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(row, "word", cur->word, 1);
^
/tmp/scws-1.2.2/phpext/php_scws.c:684:3: error: 'add_assoc_string' undeclared (first use in this function)
add_assoc_string(row, "word", cur->word, 1);
^
/tmp/scws-1.2.2/phpext/php_scws.c:687:78: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4
add_assoc_stringl(row, "attr", cur->attr, (cur->attr[1] == '\0' ? 1 : 2), 1);
^
/tmp/scws-1.2.2/phpext/php_scws.c:687:3: error: 'add_assoc_stringl' undeclared (first use in this function)
add_assoc_stringl(row, "attr", cur->attr, (cur->attr[1] == '\0' ? 1 : 2), 1);
^
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zif_scws_has_word':
/tmp/scws-1.2.2/phpext/php_scws.c:706:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: expected 'struct zend_string *' but argument is of type 'char '
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:706:3: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void *)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:706:86: warning: comparison between pointer and integer [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:707:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to find the handle property");
^
/tmp/scws-1.2.2/phpext/php_scws.c:707:26: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c:710:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &attr, &attr_len) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:710:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:714:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &object, &attr, &attr_len) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:714:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:718:26: error: expected expression before 'struct'
ZEND_FETCH_RESOURCE(ps, struct php_scws *, tmp, -1, PHP_SCWS_OBJECT_TAG, le_scws);
^
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zif_scws_get_words':
/tmp/scws-1.2.2/phpext/php_scws.c:739:3: warning: passing argument 2 of 'zend_hash_find' from incompatible pointer type [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: expected 'struct zend_string *' but argument is of type 'char '
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:739:3: error: too many arguments to function 'zend_hash_find'
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void *)&tmp) == FAILURE) {
^
In file included from /usr/local/php80/include/php/Zend/zend.h:33:0,
from /usr/local/php80/include/php/main/php.h:31,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_hash.h:173:30: note: declared here
ZEND_API zval
ZEND_FASTCALL zend_hash_find(const HashTable *ht, zend_string *key);
^
/tmp/scws-1.2.2/phpext/php_scws.c:739:86: warning: comparison between pointer and integer [enabled by default]
if (zend_hash_find(Z_OBJPROP_P(object), "handle", sizeof("handle"), (void **)&tmp) == FAILURE) {
^
/tmp/scws-1.2.2/phpext/php_scws.c:740:26: error: expected ')' before 'TSRMLS_CC'
php_error_docref(NULL TSRMLS_CC, E_WARNING, "Unable to find the handle property");
^
/tmp/scws-1.2.2/phpext/php_scws.c:740:26: error: too few arguments to function 'php_error_docref'
In file included from /tmp/scws-1.2.2/phpext/php_scws.c:25:0:
/usr/local/php80/include/php/main/php.h:341:23: note: declared here
PHPAPI ZEND_COLD void php_error_docref(const char *docref, int type, const char *format, ...)
^
/tmp/scws-1.2.2/phpext/php_scws.c:743:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &attr, &attr_len) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:743:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:747:45: error: expected ')' before 'TSRMLS_CC'
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "rs", &object, &attr, &attr_len) == FAILURE)
^
/tmp/scws-1.2.2/phpext/php_scws.c:747:45: error: too few arguments to function 'zend_parse_parameters'
In file included from /usr/local/php80/include/php/main/php.h:35:0,
from /tmp/scws-1.2.2/phpext/php_scws.c:25:
/usr/local/php80/include/php/Zend/zend_API.h:304:22: note: declared here
ZEND_API zend_result zend_parse_parameters(uint32_t num_args, const char *type_spec, ...);
^
/tmp/scws-1.2.2/phpext/php_scws.c:751:26: error: expected expression before 'struct'
ZEND_FETCH_RESOURCE(ps, struct php_scws *, tmp, -1, PHP_SCWS_OBJECT_TAG, le_scws);
^
/tmp/scws-1.2.2/phpext/php_scws.c:759:45: error: macro "add_assoc_string" passed 4 arguments, but takes just 3
add_assoc_string(row, "word", cur->word, 1);
^
/tmp/scws-1.2.2/phpext/php_scws.c:759:3: error: 'add_assoc_string' undeclared (first use in this function)
add_assoc_string(row, "word", cur->word, 1);
^
/tmp/scws-1.2.2/phpext/php_scws.c:762:78: error: macro "add_assoc_stringl" passed 5 arguments, but takes just 4
add_assoc_stringl(row, "attr", cur->attr, (cur->attr[1] == '\0' ? 1 : 2), 1);
^
/tmp/scws-1.2.2/phpext/php_scws.c:762:3: error: 'add_assoc_stringl' undeclared (first use in this function)
add_assoc_stringl(row, "attr", cur->attr, (cur->attr[1] == '\0' ? 1 : 2), 1);
^
/tmp/scws-1.2.2/phpext/php_scws.c: In function 'zif_scws_version':
/tmp/scws-1.2.2/phpext/php_scws.c:776:22: error: macro "RETURN_STRING" passed 2 arguments, but takes just 1
RETURN_STRING(buf, 1);
^
/tmp/scws-1.2.2/phpext/php_scws.c:776:2: error: 'RETURN_STRING' undeclared (first use in this function)
RETURN_STRING(buf, 1);
^
make: *** [php_scws.lo] Error 1

是不是不更新了。 这个包这么多年没动过了

参见 781f695 重新编译即可