관리-도구
편집 파일: 068.phpt
--TEST-- RarArchive direct instantiation does not crash (PHP 5.x) --SKIPIF-- <?php if (!extension_loaded("rar")) die("skip"); if (!defined('PHP_VERSION_ID') || PHP_VERSION_ID >= 70000) die("skip for PHP 5.x"); if (key_exists('USE_ZEND_ALLOC', $_ENV) && PHP_VERSION_ID < 70000) die('skip do not use with valgrind in PHP <7'); --FILE-- <?php new RarArchive(); echo "Done\n"; --EXPECTF-- Fatal error: Call to private RarArchive::__construct() from invalid context in %s on line %d