When trying to install php-xhprof-extension-4.1.7 on php-7.4.0alpha1 it fails with a compile error.
In file included from /usr/local/php7.4/include/php/Zend/zend.h:32:0,
from /usr/local/php7.4/include/php/main/php.h:33,
from /usr/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c:34:
/usr/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c: In function โtw_pcre_matchโ:
/usr/local/php7.4/include/php/Zend/zend_string.h:52:25: warning: passing argument 2 of โphp_pcre_match_implโ from incompatible pointer type [-Wincompat
ible-pointer-types]
#define ZSTR_VAL(zstr) (zstr)->val
^
/usr/local/php7.4/include/php/Zend/zend_types.h:681:27: note: in expansion of macro โZSTR_VALโ
#define Z_STRVAL(zval) ZSTR_VAL(Z_STR(zval))
^
/usr/local/php7.4/include/php/Zend/zend_types.h:682:30: note: in expansion of macro โZ_STRVALโ
#define Z_STRVAL_P(zval_p) Z_STRVAL(*(zval_p))
^
/usr/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c:177:111: note: in expansion of macro โZ_STRVAL_Pโ
#define tw_pcre_match_impl(pce, zv, retval, parts, global, use_flags, flags, offset) php_pcre_match_impl(pce, Z_STRVAL_P(subject), Z_STRLEN_P(subject)
, return_value, parts, global, use_flags, flags, offset)
^
/usr/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c:1745:5: note: in expansion of macro โtw_pcre_match_implโ
tw_pcre_match_impl(pce, subject, return_value, subpats, 0, 1, 0, 0);
^
In file included from /usr/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c:50:0:
/usr/local/php7.4/include/php/ext/pcre/php_pcre.h:44:14: 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,
^
In file included from /usr/local/php7.4/include/php/Zend/zend.h:32:0,
from /usr/local/php7.4/include/php/main/php.h:33,
from /usr/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c:34:
/usr/local/php7.4/include/php/Zend/zend_string.h:53:25: warning: passing argument 3 of โphp_pcre_match_implโ makes pointer from integer without a cast
[-Wint-conversion]
#define ZSTR_LEN(zstr) (zstr)->len
/usr/local/php7.4/include/php/Zend/zend_types.h:684:27: note: in expansion of macro โZSTR_LENโ
#define Z_STRLEN(zval) ZSTR_LEN(Z_STR(zval))
^
/usr/local/php7.4/include/php/Zend/zend_types.h:685:30: note: in expansion of macro โZ_STRLENโ
#define Z_STRLEN_P(zval_p) Z_STRLEN(*(zval_p))
^
/usr/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c:177:132: note: in expansion of macro โZ_STRLEN_Pโ
#define tw_pcre_match_impl(pce, zv, retval, parts, global, use_flags, flags, offset) php_pcre_match_impl(pce, Z_STRVAL_P(subject), Z_STRLEN_P(subject)
, return_value, parts, global, use_flags, flags, offset)
^
/usr/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c:1745:5: note: in expansion of macro โtw_pcre_match_implโ
tw_pcre_match_impl(pce, subject, return_value, subpats, 0, 1, 0, 0);
^
In file included from /usr/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c:50:0:
/usr/local/php7.4/include/php/ext/pcre/php_pcre.h:44:14: 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/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c:1745:52: warning: passing argument 5 of โphp_pcre_match_implโ makes integer from p
ointer without a cast [-Wint-conversion]
tw_pcre_match_impl(pce, subject, return_value, subpats, 0, 1, 0, 0);
^
/usr/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c:177:167: note: in definition of macro โtw_pcre_match_implโ
#define tw_pcre_match_impl(pce, zv, retval, parts, global, use_flags, flags, offset) php_pcre_match_impl(pce, Z_STRVAL_P(subject), Z_STRLEN_P(subject)
, return_value, parts, global, use_flags, flags, offset)
^
In file included from /usr/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c:50:0:
/usr/local/php7.4/include/php/ext/pcre/php_pcre.h:44:14: note: expected โintโ but argument is of type โzval * {aka struct _zval_struct *}โ
PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, zend_string *subject_str, zval *return_value,
^
/usr/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c:177:86: error: too many arguments to function โphp_pcre_match_implโ
#define tw_pcre_match_impl(pce, zv, retval, parts, global, use_flags, flags, offset) php_pcre_match_impl(pce, Z_STRVAL_P(subject), Z_STRLEN_P(subject)
, return_value, parts, global, use_flags, flags, offset)
^
/usr/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c:1745:5: note: in expansion of macro โtw_pcre_match_implโ
tw_pcre_match_impl(pce, subject, return_value, subpats, 0, 1, 0, 0);
In file included from /usr/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c:50:0:
/usr/local/php7.4/include/php/ext/pcre/php_pcre.h:44:14: note: declared here
PHPAPI void php_pcre_match_impl(pcre_cache_entry *pce, zend_string *subject_str, zval *return_value,
^
/usr/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c: In function โhp_get_file_summaryโ:
/usr/local/src/php-7.4.0alpha1/php-xhprof-extension-4.1.7/tideways.c:3006:24: warning: zero-length gnu_printf format string [-Wformat-zero-length]
snprintf(ret, len, "");
^
Makefile:196: recipe for target 'tideways.lo' failed
make: *** [tideways.lo] Error 1 ^