1--TEST-- 2RarArchive read_property gives a fatal error on a write context 3--SKIPIF-- 4<?php if(!extension_loaded("rar")) print "skip"; ?> 5--FILE-- 6<?php 7 8$f1 = dirname(__FILE__) . "/latest_winrar.rar"; 9$a = RarArchive::open($f1); 10 11unset($a[0]["jj"]); 12 13//or 14//$a[0] *= 6; 15//$a[0]["jj"] = "bar"; 16//$h = &$a[0]; 17 18echo "\n"; 19echo "Done.\n"; 20--EXPECTF-- 21Fatal error: main(): A RarArchive object is not modifiable in %s on line %d 22