1--TEST--
2Phar: create a completely new phar
3--EXTENSIONS--
4phar
5--INI--
6phar.readonly=0
7phar.require_hash=1
8--FILE--
9<?php
10
11file_put_contents('phar://' . __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php/a.php',
12    'brand new!');
13
14$phar = new Phar(__DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php');
15
16var_dump($phar->getSignature());
17?>
18--CLEAN--
19<?php unlink(__DIR__ . '/' . basename(__FILE__, '.clean.php') . '.phar.php'); ?>
20--EXPECTF--
21array(2) {
22  ["hash"]=>
23  string(64) "%s"
24  ["hash_type"]=>
25  string(7) "SHA-256"
26}
27