--TEST-- rar_open() with volume find (callback variants 1) --SKIPIF-- getEntries(); $rar = RarArchive::open($fn, null, array("A", "resolveStatic")); $rar->getEntries(); $rar = RarArchive::open($fn, null, array(new A(), "resolveInstance")); $rar->getEntries(); function testA() { global $fn; $obj = new A(); return RarArchive::open($fn, null, array($obj, "resolveInstance")); } $rar = testA(); $rar->getEntries(); echo "Done.\n"; --EXPECTF-- A::resolveStatic() A::resolveStatic() A::resolveInstance() A::resolveInstance() Done.