From 5531f66220fde9aee2c15516f9905ecf090a0b30 Mon Sep 17 00:00:00 2001 From: Florian Engelhardt Date: Tue, 29 Sep 2026 12:10:23 +0200 Subject: [PATCH] Raise test stack for stream error depth limit under MSan --- .../stream_errors_operation_depth_limit.phpt | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) 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..3c1f934ef30d 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;