Annotation of embedaddon/php/ext/reflection/tests/bug60367.phpt, revision 1.1.1.1
1.1 misho 1: --TEST--
2: Bug #60367 (Reflection and Late Static Binding)
3: --FILE--
4: <?php
5: abstract class A {
6:
7: const WHAT = 'A';
8:
9: public static function call() {
10: echo static::WHAT;
11: }
12:
13: }
14:
15: class B extends A {
16:
17: const WHAT = 'B';
18:
19: }
20:
21: $method = new ReflectionMethod("b::call");
22: $method->invoke(null);
23: $method = new ReflectionMethod("A::call");
24: $method->invoke(null);
25: --EXPECTF--
26: BA
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>