Viewing File: /opt/alt/tests/alt-php81-pecl-rar_4.2.0-1.el8/tests/088.phpt

--TEST--
RarArchive write_property gives a fatal error
--SKIPIF--
<?php
if(!extension_loaded("rar")) die("skip");
if (key_exists('USE_ZEND_ALLOC', $_ENV) && PHP_VERSION_ID < 70000) die('skip do not use with valgrind in PHP <7')
?>
--FILE--
<?php

$f1 = dirname(__FILE__) . "/latest_winrar.rar";
$a = RarArchive::open($f1);

$a[0] = "hhh";

echo "\n";
echo "Done.\n";
--EXPECTF--
Fatal error: main(): A RarArchive object is not writable in %s on line %d
Back to Directory File Manager
<