Skip to content

Commit

Permalink
Merge pull request #86 from skilld-labs/85-fix-pcre
Browse files Browse the repository at this point in the history
Fix build for 8.4 and pcre2
  • Loading branch information
longxinH authored Jul 9, 2024
2 parents da4cbaf + 49a69f9 commit 844e225
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion extension/xhprof.c
Original file line number Diff line number Diff line change
Expand Up @@ -1290,7 +1290,11 @@ int hp_pcre_match(zend_string *pattern, const char *str, size_t len, zend_ulong
#else
zend_string *tmp = zend_string_init(str, len, 0);
php_pcre_match_impl(pce_regexp, tmp, &matches, &subparts /* subpats */,
0/* global */, 0/* ZEND_NUM_ARGS() >= 4 */, 0/*flags PREG_OFFSET_CAPTURE*/, 0/* start_offset */);
0/* global */,
#if PHP_VERSION_ID < 80400
0/* ZEND_NUM_ARGS() >= 4 */,
#endif
0/*flags PREG_OFFSET_CAPTURE*/, 0/* start_offset */);
zend_string_release(tmp);
#endif

Expand Down

0 comments on commit 844e225

Please sign in to comment.