1--TEST-- 2Phar: test ini_set with readonly and require_hash enabled 3--SKIPIF-- 4<?php 5if (!extension_loaded("phar")) die("skip"); 6?> 7--INI-- 8phar.require_hash=1 9phar.readonly=1 10--FILE-- 11<?php 12var_dump(ini_set('phar.require_hash', 1)); 13var_dump(ini_set('phar.readonly', 1)); 14var_dump(ini_get('phar.require_hash')); 15var_dump(ini_get('phar.readonly')); 16var_dump(ini_set('phar.require_hash', 0)); 17var_dump(ini_set('phar.readonly', 0)); 18var_dump(ini_get('phar.require_hash')); 19var_dump(ini_get('phar.readonly')); 20__HALT_COMPILER(); 21?> 22--EXPECT-- 23string(1) "1" 24string(1) "1" 25string(1) "1" 26string(1) "1" 27bool(false) 28bool(false) 29string(1) "1" 30string(1) "1" 31