1--TEST--
2Delayed early binding throws class redeclaration error
3--EXTENSIONS--
4opcache
5--FILE--
6<?php
7class Foo {}
8include __DIR__ . '/delayed_early_binding_redeclaration-1.inc';
9include __DIR__ . '/delayed_early_binding_redeclaration-2.inc';
10var_dump(class_exists(Bar::class));
11?>
12--EXPECTF--
13Fatal error: Cannot declare class Bar, because the name is already in use in %sdelayed_early_binding_redeclaration-2.inc on line %d
14