--TEST-- Phar::buildFromIterator() readonly --EXTENSIONS-- phar --INI-- phar.require_hash=0 phar.readonly=0 --FILE-- buildFromIterator(new ArrayIterator([])); } catch (Exception $e) { var_dump(get_class($e)); echo $e->getMessage() . "\n"; } ?> --CLEAN-- --EXPECTF-- %s(24) "UnexpectedValueException" Cannot write out phar archive, phar is read-only