503f75d08b
These names don't make sense now that we run both suites the same way.
22 linhas
371 B
PHP
22 linhas
371 B
PHP
<?php
|
|
class B {
|
|
public function f1() {
|
|
var_dump(get_called_class());
|
|
if ($this !== null) {
|
|
var_dump(get_class($this));
|
|
} else {
|
|
var_dump(null);
|
|
}
|
|
echo "\n";
|
|
}
|
|
}
|
|
class C extends B {
|
|
public function g() {
|
|
$obj = new B;
|
|
forward_static_call(array('B', 'f1'));
|
|
call_user_func(array('B', 'f1'));
|
|
}
|
|
}
|
|
$obj = new C;
|
|
$obj->g();
|