php-src/Zend/tests/no_early_binding_if_already_declared.inc
Nikita Popov 89007f67d4 Fix delayed early bind if class already exists
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.
2021-10-14 14:29:22 +02:00

6 lines
71 B
PHP

<?php
if (class_exists(B::class)) {
return;
}
class B extends A {}