mirror of
https://github.com/php/php-src.git
synced 2024-10-21 08:22:42 +00:00
18 lines
421 B
Plaintext
18 lines
421 B
Plaintext
|
--TEST--
|
||
|
Phar: encrypted zip
|
||
|
--SKIPIF--
|
||
|
<?php if (!extension_loaded("phar")) die("skip"); ?>
|
||
|
<?php if (!extension_loaded("spl")) die("skip SPL not available"); ?>
|
||
|
--FILE--
|
||
|
<?php
|
||
|
try {
|
||
|
new PharData(dirname(__FILE__) . '/files/encrypted.zip');
|
||
|
} catch (Exception $e) {
|
||
|
echo $e->getMessage() . "\n";
|
||
|
}
|
||
|
?>
|
||
|
===DONE===
|
||
|
--EXPECTF--
|
||
|
phar error: Cannot process encrypted zip files in zip-based phar "%sencrypted.zip"
|
||
|
===DONE===
|