mirror of
https://github.com/bdnugget/php-src.git
synced 2026-11-07 17:27:30 +00: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:
commit
702e349df4
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user