diff options
Diffstat (limited to 'php-doctrine-migrations-tests.patch')
-rw-r--r-- | php-doctrine-migrations-tests.patch | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/php-doctrine-migrations-tests.patch b/php-doctrine-migrations-tests.patch new file mode 100644 index 0000000..ffee870 --- /dev/null +++ b/php-doctrine-migrations-tests.patch @@ -0,0 +1,25 @@ +From 7c92da024352261c0c5a9cfef59b9785eb5bd2d2 Mon Sep 17 00:00:00 2001 +From: Remi Collet <remi@remirepo.net> +Date: Wed, 27 Mar 2019 12:53:04 +0100 +Subject: [PATCH] don't run with 64-bit data on 32-bit build + +--- + .../Doctrine/Migrations/Tests/Tools/BytesFormatterTest.php | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/tests/Doctrine/Migrations/Tests/Tools/BytesFormatterTest.php b/tests/Doctrine/Migrations/Tests/Tools/BytesFormatterTest.php +index 5f5f24e29..f8acd4146 100644 +--- a/tests/Doctrine/Migrations/Tests/Tools/BytesFormatterTest.php ++++ b/tests/Doctrine/Migrations/Tests/Tools/BytesFormatterTest.php +@@ -14,7 +14,9 @@ public function testFormatBytes() : void + self::assertSame('1000', BytesFormatter::formatBytes(1000)); + self::assertSame('97.66K', BytesFormatter::formatBytes(100000)); + self::assertSame('9.54M', BytesFormatter::formatBytes(10000000)); +- self::assertSame('93.13G', BytesFormatter::formatBytes(100000000000)); +- self::assertSame('90.95T', BytesFormatter::formatBytes(100000000000000)); ++ if (PHP_INT_SIZE > 4) { ++ self::assertSame('93.13G', BytesFormatter::formatBytes(100000000000)); ++ self::assertSame('90.95T', BytesFormatter::formatBytes(100000000000000)); ++ } + } + } |