]> granicus.if.org Git - php/commitdiff
Skip test which is 64bits only
authorRemi Collet <remi@php.net>
Wed, 25 May 2016 14:17:12 +0000 (16:17 +0200)
committerJulien Pauli <jpauli@php.net>
Wed, 25 May 2016 14:40:52 +0000 (16:40 +0200)
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 ...

ext/standard/tests/file/bug72114.phpt

index 5e591ee478e83c1a7b7b856298c7130d25d5df63..3cd03fd09ad2ba218ea486aa67366d9a10de824c 100644 (file)
@@ -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");