diff --git a/ext/standard/tests/streams/stream_errors_operation_depth_limit.phpt b/ext/standard/tests/streams/stream_errors_operation_depth_limit.phpt index 1eae9c5fd31d..71abf5a03885 100644 --- a/ext/standard/tests/streams/stream_errors_operation_depth_limit.phpt +++ b/ext/standard/tests/streams/stream_errors_operation_depth_limit.phpt @@ -2,8 +2,30 @@ Stream errors: operations refused by the depth limit keep the stack consistent --INI-- zend.max_allowed_stack_size=-1 +--SKIPIF-- + --FILE-- = 32 * 1024 * 1024)) { + posix_setrlimit(POSIX_RLIMIT_STACK, 32 * 1024 * 1024, $hard === 'unlimited' ? -1 : $hard); + } +} + class RecursiveStream { public $context;