diff options
Diffstat (limited to 'ext/phar/tests/phar_oo_012b.phpt')
-rwxr-xr-x | ext/phar/tests/phar_oo_012b.phpt | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/ext/phar/tests/phar_oo_012b.phpt b/ext/phar/tests/phar_oo_012b.phpt deleted file mode 100755 index e0f6ec9129..0000000000 --- a/ext/phar/tests/phar_oo_012b.phpt +++ /dev/null @@ -1,42 +0,0 @@ ---TEST-- -Phar object: unset file ---SKIPIF-- -<?php if (!extension_loaded('phar')) die('skip'); ?> -<?php if (!extension_loaded("spl")) print "skip SPL not available"; ?> ---INI-- -phar.readonly=1 -phar.require_hash=0 ---FILE-- -<?php - -try -{ - $pharconfig = 0; - - require_once 'phar_oo_test.inc'; - - $phar = new Phar($fname); - $phar->setInfoClass('SplFileObject'); - - $phar['f.php'] = 'hi'; - var_dump(isset($phar['f.php'])); - echo $phar['f.php']; - echo "\n"; - unset($phar['f.php']); - var_dump(isset($phar['f.php'])); -} -catch (BadMethodCallException $e) -{ - echo "Exception: " . $e->getMessage() . "\n"; -} - -?> -===DONE=== ---CLEAN-- -<?php -unlink(dirname(__FILE__) . '/phar_oo_test.phar.php'); -__halt_compiler(); -?> ---EXPECTF-- -Exception: Write operations disabled by INI setting -===DONE=== |