mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
89007f67d4
We should not try to perform a delayed early bind if the class has already been declared. This matches the behavior of an ordinary early bind.
12 lines
218 B
PHP
12 lines
218 B
PHP
--TEST--
|
|
No early binding should occur if the class is already declared
|
|
--FILE--
|
|
<?php
|
|
class A {}
|
|
class B extends A {}
|
|
include __DIR__ . '/no_early_binding_if_already_declared.inc';
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|