--TEST-- rar_open() with volume find (callback variants 2) --SKIPIF-- getEntries(); $rar = RarArchive::open($fn, null, $f); $rar->getEntries(); $f2 = function ($vol) { echo "Closure (2)\n"; return A::resolve($vol); }; $rar = RarArchive::open($fn, null, $f2); unset($f2); $rar->getEntries(); echo "Done.\n"; --EXPECTF-- A::__invoke() Closure Closure (2) Done.