Hi,
Doesn't eval() always return NULL anyway (unless you actually return something from the argument) so your 'OR' statement will always print 'Can't create $currentClass', even if the instance is created.
Whatever, try using single-quotes to make life easier ... the only thing you then need to escape is the single-quote itself ...
$s = '$currentClass = new ' . $this->class_name.'();';
echo $s.'<br />';
eval($s); // Always returns NULL so don't use value to see if $s is valid.
echo '<pre>'; var_dump($currentClass); echo '</pre>';
If you are getting errors, then they may be to do with the class itself.
P.