<?php
class Controller {
public function testAction()
{
}
public static function staticAction()
{
}
public function __call()
{
}
}
$calls = array(
array('Controller', 'testAction'),
array('Controller', 'staticAction'),
array('Controller', 'fooAction'),
array(new Controller, 'testAction'),
array(new Controller, 'staticAction'),
array(new Controller, 'fooAction'),
);
foreach($calls as $call)
{
var_dump(is_callable($call));
}
- Output for 5.3.0 - 5.3.18, 5.4.0 - 5.4.8
- Fatal error: Method Controller::__call() must take exactly 2 arguments in /in/oLumG on line 18
Process exited with code 255.
preferences:
172.54 ms | 1395 KiB | 35 Q