title: php code compiled with bcompiler not working
body: <p>I don't do a huge amount of php work and I've never used bcompiler before but I'm migrating a php site to a new server and I can't get this working.</p>
  
  <p>There seems to be a class compiled with bcompiler 'class.viewimage.php' - it contains bz compressed code 'BZh91AY&SY;iu...'</p>
  
  <p>There is then a regular php file that is calling this class:</p>
  
  <pre><code>require('class.viewimage.php');
  $my_image = NEW ViewImage ($MEDIALIB-&gt;Filestore);
  </code></pre>
  
  <p>When this code is run it just spits the text contents of the compiled class into the browser ('BZh91AY&SY;iu...'). It's the require line which is causing this. Seems to me like php doesn't magically know that this is compiled code.</p>
  
  <p>To the best of my knowledge I've installed Bcompiler on the system as this code is no longer crashing (and it was crashing when I first did the migration):</p>
  
  <pre><code>if (!extension_loaded('bcompiler')) {
      $prefix = (PHP_SHLIB_SUFFIX === 'dll') ? 'php_' : '';
      dl($prefix . 'bcompiler.' . PHP_SHLIB_SUFFIX);
  }
  </code></pre>
  
  <p>Any help appreciated.</p>