com php-src: Skip test which is 64bits only: ext/standard/tests/file/bug72114.phpt
| From: | Ferenc Kovacs | Date: | Thu, 26 May 2016 00:50:00 +0000 |
| Subject: | com php-src: Skip test which is 64bits only: ext/standard/tests/file/bug72114.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-92214@lists.php.net to get a copy of this message | ||
Commit: fba887ae24c6ab617d2a457d9ed6e5b1eace9788
Author: Remi Collet <remi@php.net> Wed, 25 May 2016 16:17:12 +0200
Committer: Ferenc Kovacs <tyrael@php.net> Thu, 26 May 2016 02:50:00 +0200
Parents: a3916cd9594a945a043169e9b8dc82fa2b8d99bb
Branches: PHP-5.6.22
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=fba887ae24c6ab617d2a457d9ed6e5b1eace9788
Log:
Skip test which is 64bits only
Diff from test output
001+ Warning: fread(): Length parameter must be greater than 0 in ...
001- Warning: fread(): Length parameter must be no more than 2147483647 in ...
Changed paths:
M ext/standard/tests/file/bug72114.phpt
Diff:
diff --git a/ext/standard/tests/file/bug72114.phpt b/ext/standard/tests/file/bug72114.phpt
index f0f11c1..45570a3 100644
--- a/ext/standard/tests/file/bug72114.phpt
+++ b/ext/standard/tests/file/bug72114.phpt
@@ -1,5 +1,7 @@
--TEST--
Bug #72114 (Integer underflow / arbitrary null write in fread/gzread)
+--SKIPIF--
+<?php if (PHP_INT_SIZE != 8) die("skip this test is for 64bit platform only"); ?>
--FILE--
<?php
ini_set('memory_limit', "2500M");