1--TEST-- 2Testing __call and __callstatic with callbacks 3--FILE-- 4<?php 5 6class Foo { 7 public function __call($a, $b) { 8 print "nonstatic\n"; 9 var_dump($a); 10 } 11 static public function __callStatic($a, $b) { 12 print "static\n"; 13 var_dump($a); 14 } 15} 16 17$a = new Foo; 18call_user_func(array($a, 'aAa')); 19call_user_func(array('Foo', 'aAa')); 20 21?> 22--EXPECT-- 23nonstatic 24string(3) "aAa" 25static 26string(3) "aAa" 27