Código PHP:
Ver original
function errorHandler($errno, $errstr)
{
echo "error: $errno<br>";
}
function a($b)
{
echo "$b<br>";
}
a();
este codigo obviamente funciona, el tema es que a traves de...
Control.php
Código PHP:
Ver originalargControl::start();
$this->object = new $class();
argControl::stop();
argControl.php
Código PHP:
Ver originalclass argControl
{
public static
$func = array( __CLASS__,
'errorHandler'
);
public static function start($func = null)
{
static::$func = $func;
}
public static function stop()
{
}
public static function errorHandler($errno, $errstr)
{
echo "error: $errno<br>";
}
}
no.. :/