Closed andypost closed 4 months ago
fixed with patch
--- xhprof.c.1 2024-07-04 15:12:10.061490736 +0200
+++ xhprof.c 2024-07-04 15:19:07.105383656 +0200
@@ -1287,6 +1287,11 @@
#if PHP_VERSION_ID < 70400
php_pcre_match_impl(pce_regexp, (char*)str, len, &matches, &subparts /* subpats */,
0/* global */, 0/* ZEND_NUM_ARGS() >= 4 */, 0/*flags PREG_OFFSET_CAPTURE*/, 0/* start_offset */);
+#elif PHP_VERSION_ID >= 80400
+ zend_string *tmp = zend_string_init(str, len, 0);
+ php_pcre_match_impl(pce_regexp, (char*)str, len, &matches, &subparts /* subpats */,
+ 0/* global */, 0/*flags PREG_OFFSET_CAPTURE*/, 0/* start_offset */);
+ zend_string_release(tmp);
#else
zend_string *tmp = zend_string_init(str, len, 0);
php_pcre_match_impl(pce_regexp, tmp, &matches, &subparts /* subpats */,
Related to https://github.com/php/php-src/pull/12923
f. ext/pcre
- php_pcre_match_impl() now no longer has a use_flags argument.
When flags should be ignored, pass 0 to the flags argument.
Bug Report
Building extension for Alpinelinux edge using fresh PHP 8.4 alpha1, probably effect of transition to pcre2
What did you expect to see? the build passed
What did you see instead
What is your Xhprof version? 2.3.9 (latest)