xref: /PHP-8.2/ext/phar/tests/ini_set.phpt (revision 74859783)
1--TEST--
2Phar: test ini_set with readonly and require_hash enabled
3--EXTENSIONS--
4phar
5--INI--
6phar.require_hash=1
7phar.readonly=1
8--FILE--
9<?php
10var_dump(ini_set('phar.require_hash', 1));
11var_dump(ini_set('phar.readonly', 1));
12var_dump(ini_get('phar.require_hash'));
13var_dump(ini_get('phar.readonly'));
14var_dump(ini_set('phar.require_hash', 0));
15var_dump(ini_set('phar.readonly', 0));
16var_dump(ini_get('phar.require_hash'));
17var_dump(ini_get('phar.readonly'));
18__HALT_COMPILER();
19?>
20--EXPECT--
21string(1) "1"
22string(1) "1"
23string(1) "1"
24string(1) "1"
25bool(false)
26bool(false)
27string(1) "1"
28string(1) "1"
29