<?php
$code = file_get_contents($file);
$obj = null;

if (defined('tempns'))
  if (!function_exists('uopz_undefine'))
    die('You need uopz pecl extension for complex class cross includes');
  else
    uopz_undefine('tempns');

define('tempns', 'tempns_'.md5(microtime()));
//$new_source = preg_replace("/class(\s+)({$module})/", "class /".tempns."/$module", $code);
$code = str_replace('<?php', 'namespace '.tempns.';', $code);
$code = str_replace(' api', '\\api', $code);


eval($code);

$classname = "\\".tempns."\\$module";
$obj = new $classname;
<?php
$code = file_get_contents($file);
$obj = null;

if (defined('tempns'))
  if (!function_exists('uopz_undefine'))
    die('You need uopz pecl extension for complex class cross includes');
  else
    uopz_undefine('tempns');

define('tempns', 'tempns_'.md5(microtime()));
//$new_source = preg_replace("/class(\s+)({$module})/", "class /".tempns."/$module", $code);
$code = str_replace('<?php', 'namespace '.tempns.';', $code);
$code = preg_replace('/ api\s*\n/', '\\api', $code);

eval($code);

$classname = "\\".tempns."\\$module";
$obj = new $classname;
Fix first crappy bug in this crappy hack
Fix first crappy bug in this crappy hack
