1--TEST--
2Closure::bindTo() should preserve used variables
3--FILE--
4<?php
5
6$var = 0;
7$fn = function() use($var) {
8    var_dump($var);
9};
10$fn();
11$fn = $fn->bindTo(null, null);
12$fn();
13
14?>
15--EXPECT--
16int(0)
17int(0)
18