Skip to content

Commit b93d3fd

Browse files
committed
test: disable stack size check for PHP ^8.3
1 parent f061903 commit b93d3fd

File tree

3 files changed

+11
-6
lines changed

3 files changed

+11
-6
lines changed

README.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
[![Maintainability](https://api.codeclimate.com/v1/badges/9ee55cb5587fbf64dea8/maintainability)](https://codeclimate.com/github/idealo/php-rdkafka-ffi/maintainability)
1010
[![Packagist](https://img.shields.io/packagist/v/idealo/php-rdkafka-ffi)](https://packagist.org/packages/idealo/php-rdkafka-ffi)
1111

12-
This is a Kafka client library for PHP ^7.4 and ^8.0 with a slim [librdkafka](https://github.com/confluentinc/librdkafka) binding via [FFI](https://www.php.net/manual/en/book.ffi.php).
12+
This is a Kafka client library for PHP ^7.4 and ^8.0 with a slim [librdkafka](https://github.com/confluentinc/librdkafka) binding
13+
via [FFI](https://www.php.net/manual/en/book.ffi.php).
1314

1415
It supports the same interfaces as the [PHP RdKafka extension](https://github.com/arnaud-lb/php-rdkafka) ^5.0 and ^6.0.
1516

@@ -30,15 +31,19 @@ It supports the same interfaces as the [PHP RdKafka extension](https://github.co
3031
* zend opcache extension for preloading
3132
* pcntl extension for faster shutdown in request/response context
3233

34+
Note: From PHP 8.3 onwards, you must disable the stack overflow check by setting `zend.max_allowed_stack_size=-1` in your php.ini. This is
35+
necessary because FFI callbacks are executed off the main thread, and the overflow checks do not handle this scenario properly.
36+
3337
Note: Support for macOS and Windows is experimental.
3438

3539
## Installation
3640

3741
composer require idealo/php-rdkafka-ffi
38-
42+
3943
Note: Expect breaking changes along all 0.* pre-releases.
40-
This changes may depend on upcoming major releases of the RdKafka extension or improved interfaces for the experimental features like transactional producer, mock cluster and admin client.
41-
44+
This changes may depend on upcoming major releases of the RdKafka extension or improved interfaces for the experimental features like
45+
transactional producer, mock cluster and admin client.
46+
4247
## Documentation
4348

4449
https://idealo.github.io/php-rdkafka-ffi/
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
zend.max_allowed_stack_size=-1
1+
zend.max_allowed_stack_size=-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
zend.max_allowed_stack_size=-1
1+
zend.max_allowed_stack_size=-1

0 commit comments

Comments
 (0)