Skip to content

Instantly share code, notes, and snippets.

@binarycleric
Created October 12, 2012 17:27
Show Gist options
  • Save binarycleric/3880379 to your computer and use it in GitHub Desktop.
Save binarycleric/3880379 to your computer and use it in GitHub Desktop.
PHP Bug #55247 Investigation
<?php
class Test{
public static function __callStatic($method, $arguments)
{
echo $method . PHP_EOL;
}
public function __call($method, $arguments)
{
echo $method . PHP_EOL;
}
}
$method = 'method';
$test = new Test();
$test->method();
$test->$method();
$test->{'method'}();
Test::method();
Test::$method();
Test::{'method'}();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment