From 924b31b7822a779d5e1cfe9955aaabfe86fd7cf4 Mon Sep 17 00:00:00 2001 From: Ilija Tovilo Date: Tue, 1 Dec 2026 16:56:48 +0100 Subject: [PATCH] Fix integer overflow test expectation This fails on x86-32 Windows since GH-23869. --- ext/standard/tests/strings/chunk_split_variation1_32bit.phpt | 2 +- ext/standard/tests/strings/wordwrap_memory_limit_32bit.phpt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/standard/tests/strings/chunk_split_variation1_32bit.phpt b/ext/standard/tests/strings/chunk_split_variation1_32bit.phpt index 03a101eb2e43..f97f2cbef068 100644 --- a/ext/standard/tests/strings/chunk_split_variation1_32bit.phpt +++ b/ext/standard/tests/strings/chunk_split_variation1_32bit.phpt @@ -17,4 +17,4 @@ var_dump(chunk_split($a,$b,$c)); --EXPECTF-- *** Testing chunk_split() : unexpected large 'end' string argument variation 1 *** -Fatal error: %rAllowed memory size of %d bytes exhausted%s\(tried to allocate %d bytes\)|Possible integer overflow in memory allocation \(4294901777 \+ %d\)%r in %s on line %d +Fatal error: %rAllowed memory size of %d bytes exhausted%s\(tried to allocate %d bytes\)|Possible integer overflow in memory allocation \(4294901784 \+ %d\)%r in %s on line %d diff --git a/ext/standard/tests/strings/wordwrap_memory_limit_32bit.phpt b/ext/standard/tests/strings/wordwrap_memory_limit_32bit.phpt index 36d22cc859b5..b4addf99211d 100644 --- a/ext/standard/tests/strings/wordwrap_memory_limit_32bit.phpt +++ b/ext/standard/tests/strings/wordwrap_memory_limit_32bit.phpt @@ -16,4 +16,4 @@ wordwrap($str, 1, $str2); ?> --EXPECTF-- -Fatal error: %rAllowed memory size of %d bytes exhausted%s\(tried to allocate %d bytes\)|Possible integer overflow in memory allocation \(4294901777 \+ %d\)%r in %s on line %d +Fatal error: %rAllowed memory size of %d bytes exhausted%s\(tried to allocate %d bytes\)|Possible integer overflow in memory allocation \(4294901776 \+ %d\)%r in %s on line %d