} catch (Exception $e) {
echo $e->getMessage() . "\n";
}
+try {
+$data->setSignatureAlgorithm(Phar::MD5);
+} catch (Exception $e) {
+echo $e->getMessage() . "\n";
+}
$tar = $phar->convertToExecutable(Phar::TAR);
echo $tar->getPath() . "\n";
$data = $tar->convertToData();
} catch (Exception $e) {
echo $e->getMessage() . "\n";
}
+try {
+$data->setSignatureAlgorithm(Phar::MD5);
+} catch (Exception $e) {
+echo $e->getMessage() . "\n";
+}
?>
===DONE===
--CLEAN--
A Phar stub cannot be set in a plain zip archive
A Phar stub cannot be set in a plain zip archive
A Phar alias cannot be set in a plain zip archive
+Cannot set signature algorithm, not possible with zip-based phar archives
%sphar_convert_again2.phar.tar
%sphar_convert_again2.tar
%sphar_convert_again2.phar.tar.gz
A Phar stub cannot be set in a plain tar archive
A Phar alias cannot be set in a plain tar archive
A Phar stub cannot be set in a plain tar archive
+Cannot set signature algorithm, not possible with tar-based phar archives
===DONE===