Skip to content

Commit e1ee2cb

Browse files
committed
fix test attempt
1 parent 4754590 commit e1ee2cb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ext/spl/tests/gh14687.phpt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ class HasDestructor {
1818
}
1919
$s = new SplObjectStorage();
2020
$s[$phar] = new HasDestructor();
21+
register_shutdown_function(function() {
22+
global $s;
23+
});
2124
--EXPECT--
2225
object(SplObjectStorage)#2 (1) {
2326
["storage":"SplObjectStorage":private]=>

0 commit comments

Comments
 (0)