관리-도구
편집 파일: 069.phpt
--TEST-- RarEntry 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 RarEntry(); echo "Done\n"; --EXPECTF-- Fatal error: Call to private RarEntry::__construct() from invalid context in %s on line %d