Skip to content

Commit 58a88cc

Browse files
committed
Fix call to dc[n]gettext in tests with 0 $category
This causes a segfault on PHP-8.1
1 parent 611af05 commit 58a88cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Zend/tests/arginfo_zpp_mismatch.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ function skipFunction($function): bool {
2929
|| $function === 'posix_setrlimit'
3030
|| $function === 'sapi_windows_generate_ctrl_event'
3131
|| $function === 'imagegrabscreen'
32+
// PHP-8.1 only
33+
|| $function === 'dcgettext'
34+
|| $function === 'dcngettext'
3235
) {
3336
return true;
3437
}

0 commit comments

Comments
 (0)