php-src/ext/phar/tests/032.phpt
2008-02-20 13:33:00 +00:00

29 lines
467 B
PHP
Executable File

--TEST--
Phar: require hash
--SKIPIF--
<?php if (!extension_loaded("phar")) die("skip"); ?>
--INI--
phar.require_hash=1
--FILE--
<?php
$pharconfig = 0;
require_once 'files/phar_oo_test.inc';
try {
Phar::loadPhar($fname);
} catch (Exception $e) {
echo $e->getMessage();
}
?>
===DONE===
--CLEAN--
<?php
unlink(dirname(__FILE__) . '/files/phar_oo_test.phar.php');
__halt_compiler();
?>
--EXPECTF--
phar "%sphar_oo_test.phar.php" does not have a signature===DONE===