1
0
mirror of https://github.com/php/php-src.git synced 2026-03-25 16:52:18 +01:00

Merge branch 'PHP-5.5' into PHP-5.6

* PHP-5.5:
  rework that test to allow delta for rounding errors
This commit is contained in:
Anatol Belski
2015-06-11 17:06:46 +02:00

View File

@@ -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;
}