--TEST-- ZipArchive destructor should be called on bailout --EXTENSIONS-- zip --FILE-- open($file, ZIPARCHIVE::CREATE); $zip->registerCancelCallback(cb(...)); $zip->addFromString('test', 'test'); $fusion = $zip; ?> --CLEAN-- --EXPECTF-- Notice: Only variable references should be returned by reference in %s on line %d Notice: Only variable references should be returned by reference in %s on line %d Notice: Only variable references should be returned by reference in %s on line %d