1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/Zend/tests/no_early_binding_if_already_declared.phpt
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

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===