Skip to content

Commit

Permalink
Add support for PHP 8.4 (nightly) and run tests also on PHP 8.4
Browse files Browse the repository at this point in the history
  • Loading branch information
crocodele committed Dec 19, 2023
1 parent 66fe60a commit 40a17ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ "8.0", "8.1", "8.2", "8.3" ]
php: [ "8.0", "8.1", "8.2", "8.3" "8.4" ]
use-opcache: [ "true", "false" ]

steps:
Expand Down
4 changes: 4 additions & 0 deletions src/jsonpath/interpreter.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,11 @@ static bool compare_rgxp(zval* lh, zval* rh) {

zend_string* zs_lh = zend_string_copy(Z_STR_P(lh));

#if PHP_VERSION_ID >= 80400
php_pcre_match_impl(pce, zs_lh, &retval, &subpats, 0, 0, 0);
#else
php_pcre_match_impl(pce, zs_lh, &retval, &subpats, 0, 0, 0, 0);
#endif

zend_string_release_ex(zs_lh, 0);
zval_ptr_dtor(&subpats);
Expand Down

0 comments on commit 40a17ff

Please sign in to comment.