blob: 3f32dc3a66db2f8cbe7577e6f7c58b7047decc38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
--TEST--
ZE2 Late Static Binding is_callable() and static::method()
--FILE--
<?php
class Test1 {
static function test() {
var_dump(is_callable("static::ok"));
var_dump(is_callable(array("static","ok")));
}
}
class Test2 extends Test1 {
static function ok() {
}
}
Test1::test();
Test2::test();
?>
--EXPECT--
bool(false)
bool(false)
bool(true)
bool(true)
|