mirror of
https://github.com/php/php-src.git
synced 2025-01-27 06:03:45 +08:00
Fix test gc_029_zts.phpt
In ZTS the default properties are duplicated (instead of copied), so the array has one lower RC than on NTS and as such gets destroyed during GC, increasing the cycle count by 3. PHP 5.6 didn't always copy default properties on ZTS, which is where the difference comes from.
This commit is contained in:
parent
2fd7d60ea0
commit
f1e21c4979
@ -34,4 +34,4 @@ unset($bar);
|
||||
var_dump(gc_collect_cycles());
|
||||
?>
|
||||
--EXPECT--
|
||||
int(3)
|
||||
int(6)
|
||||
|
Loading…
Reference in New Issue
Block a user