mirror of
https://github.com/php/php-src.git
synced 2024-11-23 18:04:36 +08:00
1c30c5e707
Fixes GH-13950 Closes GH-13999
14 lines
463 B
PHP
14 lines
463 B
PHP
--TEST--
|
|
Delayed early binding throws class redeclaration error
|
|
--EXTENSIONS--
|
|
opcache
|
|
--FILE--
|
|
<?php
|
|
class Foo {}
|
|
include __DIR__ . '/delayed_early_binding_redeclaration-1.inc';
|
|
include __DIR__ . '/delayed_early_binding_redeclaration-2.inc';
|
|
var_dump(class_exists(Bar::class));
|
|
?>
|
|
--EXPECTF--
|
|
Fatal error: Cannot redeclare class Bar (previously declared in %sdelayed_early_binding_redeclaration-1.inc:2) in %sdelayed_early_binding_redeclaration-2.inc on line %d
|