--TEST-- Bug GH-9164: Segfault in zend_accel_class_hash_copy --EXTENSIONS-- opcache pcntl --INI-- opcache.enable=1 opcache.enable_cli=1 --FILE-- 0) { pcntl_wait($status); // Ensure that file has been cached. If not, this is testing nothing anymore. if (!isset(opcache_get_status()['scripts'][$incfile])) { print "File not cached\n"; } // Populates local cache require $incfile; var_dump(new FooBar4095); unlink($incfile); } else { echo "pcntl_fork() failed\n"; } ?> --EXPECTF-- object(FooBar4095)#%d (0) { }