Skip to content

php74 不支持 #162

@lijiefeng-lee

Description

@lijiefeng-lee

hp_pcre_match_impl(cache, subject, strlen(subject), result, subpats, 0, 0, 0, 0 TSRMLS_CC);
^~~~~~~
In file included from /usr/src/php/ext/molten/molten_intercept.h:38,
from /usr/src/php/ext/molten/molten_intercept.c:16:
/usr/local/include/php/ext/pcre/php_pcre.h:45:70: note: expected 'zend_string *' {aka 'struct _zend_string *'} but argument is of type 'char *'
PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, zend_string *subject_str, zval *return_value,
~~~~~~~~~~~~~^~~~~~~~~~~
/usr/src/php/ext/molten/molten_intercept.c:338:45: warning: passing argument 3 of 'php_pcre_match_impl' makes pointer from integer without a cast [-Wint-conversion]
php_pcre_match_impl(cache, subject, strlen(subject), result, subpats, 0, 0, 0, 0 TSRMLS_CC);
^~~~~~~~~~~~~~~
In file included from /usr/src/php/ext/molten/molten_intercept.h:38,
from /usr/src/php/ext/molten/molten_intercept.c:16:
/usr/local/include/php/ext/pcre/php_pcre.h:45:89: note: expected 'zval *' {aka 'struct _zval_struct *'} but argument is of type 'size_t' {aka 'long unsigned int'}
PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, zend_string *subject_str, zval *return_value,
~~~~~~^~~~~~~~~~~~
/usr/src/php/ext/molten/molten_intercept.c:338:70: warning: passing argument 5 of 'php_pcre_match_impl' makes integer from pointer without a cast [-Wint-conversion]
php_pcre_match_impl(cache, subject, strlen(subject), result, subpats, 0, 0, 0, 0 TSRMLS_CC);
^~~~~~~
In file included from /usr/src/php/ext/molten/molten_intercept.h:38,
from /usr/src/php/ext/molten/molten_intercept.c:16:
/usr/local/include/php/ext/pcre/php_pcre.h:46:21: note: expected 'int' but argument is of type 'zval *' {aka 'struct _zval_struct *'}
zval *subpats, int global, int use_flags, zend_long flags, zend_off_t start_offset);
~~~~^~~~~~
/usr/src/php/ext/molten/molten_intercept.c:338:9: error: too many arguments to function 'php_pcre_match_impl'
php_pcre_match_impl(cache, subject, strlen(subject), result, subpats, 0, 0, 0, 0 TSRMLS_CC);
^~~~~~~~~~~~~~~~~~~
In file included from /usr/src/php/ext/molten/molten_intercept.h:38,
from /usr/src/php/ext/molten/molten_intercept.c:16:
/usr/local/include/php/ext/pcre/php_pcre.h:45:14: note: declared here
PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, zend_string *subject_str, zval *return_value,
^~~~~~~~~~~~~~~~~~~
/usr/src/php/ext/molten/molten_intercept.c: In function 'mongodb_record':
/usr/src/php/ext/molten/molten_intercept.c:1174:29: warning: implicit declaration of function 'Z_OBJDEBUG_P'; did you mean 'Z_OBJCE_P'? [-Wimplicit-function-declaration]
HashTable *debug_hash = Z_OBJDEBUG_P(obj, is_temp);
^~~~~~~~~~~~
Z_OBJCE_P
/usr/src/php/ext/molten/molten_intercept.c:1174:29: warning: initialization of 'HashTable *' {aka 'struct _zend_array *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
/usr/src/php/ext/molten/molten_intercept.c: In function 'mongodb_server_record':
/usr/src/php/ext/molten/molten_intercept.c:1211:29: warning: initialization of 'HashTable *' {aka 'struct _zend_array *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
HashTable *debug_hash = Z_OBJDEBUG_P(obj, is_temp);
^~~~~~~~~~~~
/usr/src/php/ext/molten/molten_intercept.c: In function 'es_request_record':
/usr/src/php/ext/molten/molten_intercept.c:1345:94: warning: passing argument 6 of 'pit->psb->span_add_ba' from incompatible pointer type [-Wincompatible-pointer-types]
pit->psb->span_add_ba(span, "sa", "true", frame->exit_time, "es", url->host, url->port, BA_SA);
~~~^~~~~~
/usr/src/php/ext/molten/molten_intercept.c:1345:94: note: expected 'char *' but argument is of type 'zend_string *' {aka 'struct _zend_string *'}
/usr/src/php/ext/molten/molten_intercept.c: In function 'convert_args_to_string':
/usr/src/php/ext/molten/molten_intercept.c:101:14: warning: 'strncat' specified bound 1 equals source length [-Wstringop-overflow=]
string = strncat(string, " ", 1);
^~~~~~~~~~~~~~~~~~~~~~~
/usr/src/php/ext/molten/molten_intercept.c:117:22: warning: 'strncat' specified bound 1 equals source length [-Wstringop-overflow=]
string = strncat(string, ",", 1);
^~~~~~~~~~~~~~~~~~~~~~~
/usr/src/php/ext/molten/molten_intercept.c:124:18: warning: 'strncat' specified bound 3 equals source length [-Wstringop-overflow=]
string = strncat(string, ARGS_ELLIPSIS, ARGS_ELLIPSIS_LEN);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions