summaryrefslogtreecommitdiff
path: root/ext/phar/tests/033a.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/033a.phpt')
-rw-r--r--ext/phar/tests/033a.phpt36
1 files changed, 0 insertions, 36 deletions
diff --git a/ext/phar/tests/033a.phpt b/ext/phar/tests/033a.phpt
deleted file mode 100644
index 64a5a01b13..0000000000
--- a/ext/phar/tests/033a.phpt
+++ /dev/null
@@ -1,36 +0,0 @@
---TEST--
-Phar::chmod
---SKIPIF--
-<?php if (!extension_loaded("phar")) print "skip"; ?>
---INI--
-phar.readonly=1
-phar.require_hash=0
---FILE--
-<?php
-$fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.1.phar.php';
-$pname = 'phar://hio';
-$file = '<?php include "' . $pname . '/a.php"; __HALT_COMPILER(); ?>';
-
-$files = array();
-$files['a.php'] = '<?php echo "This is a\n"; include "'.$pname.'/b.php"; ?>';
-include 'phar_test.inc';
-try {
- $a = new Phar($fname);
- var_dump($a['a.php']->isExecutable());
- $a['a.php']->chmod(0777);
- var_dump($a['a.php']->isExecutable());
- $a['a.php']->chmod(0666);
- var_dump($a['a.php']->isExecutable());
-} catch (Exception $e) {
- echo $e->getMessage() . "\n";
-}
-?>
-===DONE===
---CLEAN--
-<?php
-unlink(dirname(__FILE__) . '/' . basename(__FILE__, '.clean.php') . '.1.phar.php');
-?>
---EXPECTF--
-bool(false)
-Cannot modify permissions for file "a.php" write operations are prohibited
-===DONE===