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

if ($classname != 'phoxy')
{
  $tempns = uniqid('phoxy\fork_');

  $header = <<<END
  namespace $tempns;

  use \phoxy as phoxy;
END;

  $code = str_replace('<?php', $header, $code);
  $code = preg_replace('/ api\s*\n/', ' \\api', $code);


  eval($code);

  $classname = "\\".$tempns."\\$module";
}

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

$tempns = uniqid('phoxy\fork_');

$header = <<<END
  namespace $tempns;

  use \phoxy as phoxy;
END;

$code = str_replace('<?php', $header, $code);
$code = preg_replace('/ api\s*\n/', '\\api', $code);

eval($code);

$classname = "\\".$tempns."\\$module";

--- 
+++ 
@@ -2,17 +2,21 @@
 $code = file_get_contents($file);
 $obj = null;
 
-$tempns = uniqid('phoxy\fork_');
+if ($classname != 'phoxy')
+{
+  $tempns = uniqid('phoxy\fork_');
 
-$header = <<<END
+  $header = <<<END
   namespace $tempns;
 
   use \phoxy as phoxy;
 END;
 
-$code = str_replace('<?php', $header, $code);
-$code = preg_replace('/ api\s*\n/', '\\api', $code);
+  $code = str_replace('<?php', $header, $code);
+  $code = preg_replace('/ api\s*\n/', ' \\api', $code);
 
-eval($code);
 
-$classname = "\\".$tempns."\\$module";
+  eval($code);
+
+  $classname = "\\".$tempns."\\$module";
+}
Fix crossinclude conflict for phoxy class
