<?php
function PHPMailerAutoload($classname)
{
//Can't use __DIR__ as it's only in PHP 5.3+
$filename = dirname(__FILE__).DIRECTORY_SEPARATOR.'class.'.strtolower($classname).'.php';
if (is_readable($filename)) {
require $filename;
}
}
spl_autoload_register('PHPMailerAutoload', true, true);
<br />
<b>Fatal error</b>: Call to undefined function spl_autoload_register() in <b>/in/I4hWJ</b> on line <b>11</b><br />
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<br />
<b>Fatal error</b>: Call to undefined function: spl_autoload_register() in <b>/in/I4hWJ</b> on line <b>11</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.3.11, 4.4.0 - 4.4.4
<br />
<b>Fatal error</b>: Call to undefined function: spl_autoload_register() in <b>/in/I4hWJ</b> on line <b>11</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br />
<b>Fatal error</b>: Call to undefined function: spl_autoload_register() in <b>/in/I4hWJ</b> on line <b>11</b><br />