1--TEST-- 2Bug #81607: CE_CACHE allocation with concurrent access 3--EXTENSIONS-- 4opcache 5pcntl 6--INI-- 7opcache.enable_cli=1 8--FILE-- 9<?php 10 11$pid = pcntl_fork(); 12if ($pid == 0) { 13 // Child: Declare class FooBar {} to allocate CE cache slot. 14 require __DIR__ . '/bug81607.inc'; 15} else if ($pid > 0) { 16 pcntl_wait($status); 17 var_dump(new FooBar); 18} else { 19 echo "pcntl_fork() failed\n"; 20} 21 22?> 23--EXPECTF-- 24Fatal error: Uncaught Error: Class "FooBar" not found in %s:%d 25Stack trace: 26#0 {main} 27 thrown in %s on line %d 28