1--TEST-- 2Bug #67215 (php-cgi work with opcache, may be segmentation fault happen) 3--INI-- 4opcache.enable=1 5opcache.enable_cli=1 6opcache.file_update_protection=0 7--EXTENSIONS-- 8opcache 9--FILE-- 10<?php 11 12$file_c = __DIR__ . "/bug67215.c.php"; 13$file_p = __DIR__ . "/bug67215.p.php"; 14file_put_contents($file_c, "<?php require '$file_p'; class c extends p {} ?>"); 15file_put_contents($file_p, '<?php class p { protected $var = ""; } ?>'); 16require $file_c; 17$a = new c(); 18require $file_c; 19?> 20--CLEAN-- 21<?php 22$file_c = __DIR__ . "/bug67215.c.php"; 23$file_p = __DIR__ . "/bug67215.p.php"; 24unlink($file_c); 25unlink($file_p); 26?> 27--EXPECTF-- 28Fatal error: Cannot redeclare class p (previously declared in %sbug67215.p.php:%d) in %sbug67215.p.php on line %d 29