diff options
author | Anatol Belski <ab@php.net> | 2015-06-11 17:07:24 +0200 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2015-06-11 17:07:24 +0200 |
commit | 8cfe28259ed0b0bebb72d8292abc877181b84d34 (patch) | |
tree | 56927c0aecd5036044db41efa354606fe4ff5f3f | |
parent | 227680d6da078c41fb0bde3d091fac7587a816b9 (diff) | |
parent | 702e349df4ef3cc91927efc0fc5caf0b59cd96e8 (diff) | |
download | php-git-8cfe28259ed0b0bebb72d8292abc877181b84d34.tar.gz |
Merge branch 'PHP-5.6'
* PHP-5.6:
rework that test to allow delta for rounding errors
-rw-r--r-- | ext/pdo_pgsql/tests/bug69752.phpt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/pdo_pgsql/tests/bug69752.phpt b/ext/pdo_pgsql/tests/bug69752.phpt index 6cf9a0a928..bb7e5e87e7 100644 --- a/ext/pdo_pgsql/tests/bug69752.phpt +++ b/ext/pdo_pgsql/tests/bug69752.phpt @@ -42,7 +42,8 @@ for($i = 0; $i < $max; $i++) { if ($first_time_usage === null) $first_time_usage = $usage; - if ($first_time_usage != $usage){ + /* Use delta instead of direct comparison here */ + if (abs($first_time_usage - $usage) > 3){ printf("Memory Leak Detected: %d != %d\n", $usage, $first_time_usage); break; } |