xref: /PHP-8.0/Zend/tests/bug41633_4.phpt (revision f8d79582)
1--TEST--
2Bug #41633.4 (self:: doesn't work for constants)
3--FILE--
4<?php
5class Foo {
6    const A = self::B;
7    const B = "ok";
8}
9var_dump(defined("Foo::A"));
10?>
11--EXPECT--
12bool(true)
13