- Output for 5.3.0 - 5.3.18, 5.4.0 - 5.4.8
- Parse error: syntax error, unexpected '=' in /in/61At2 on line 21
Process exited with code 255.
<?php
class foo {
function __call($name, $args){
echo "__call " . $name . PHP_EOL;
}
public static function __callStatic($name, $args) {
echo "__callStatic " . $name . PHP_EOL;
}
public function make_call_self() {
self::ted();
}
public function make_call_static() {
static::ted();
}
function make_call_classname() {
x = function(){ foo::bob(); };
x();
}
}
$x = new foo();
$x->make_call_self();
$x->make_call_static();
$x->make_call_classname();
foo::sam();