[php-src] PR #14788: ext/standard/tests: use %d instead of bytes in an overflow message

From: Date: Wed, 03 Jul 2024 13:42:59 +0000
Subject: [php-src] PR #14788: ext/standard/tests: use %d instead of bytes in an overflow message
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-26991@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/14788 Author: orlitzky In strings/chunk_split_variation1_32bit.phpt, we have a test that is expected to fail on x32 with a possible integer overflow error. The message reports the exact number of bytes -- a number big enough to overflow an int on x32 -- stemming from a memory allocation in chunk_split(). This number appears unpredictable, and is not the point of the test. We replace it with %d to make the test independent of the allocation details. (This fixes half of https://bugs.gentoo.org/935382)

« previous php.git-pulls (#26991) next »