Because you are simply trying to create / redeem a function with the name of an existing native function :
function spl_autoload_register($class){require_once"{$class}.class.php";}
If the intention is to use spl_autoload_register
, the correct would be to do this:
function meu_autoloader($class) {
require_once"{$class}.class.php";
}
spl_autoload_register('meu_autoloader');
Or use closure (PHP anonymous function) directly:
spl_autoload_register(function ($class) {
require_once"{$class}.class.php";
});