title: Zend Framework cannot redeclare class errors using Autoloader
body: <p>At seemingly random (I hate to say the word), I am getting the following error with various "Db" classes under the Zend Framework 1.11 when Autoloader tries to load them on demand:
  <hr>
  <b>Fatal error</b>:  Cannot redeclare class Zend_Db_Table_Select in <b>C:\www\Zend\Db\Table\Select.php</b> on line <b>224</b><br />
  <br />
  <b>Fatal error</b>:  Access to undeclared static property: Zend_Db_Table_Abstract::$_writeClosed in <b>Unknown</b> on line <b>0</b></p>
  
  <hr>
  
  <p>The only part of the Zend Framework I explicitly have a "require" line for is the Zend Autoloader, so I don't know why or how these classes are being redeclared:</p>
  
  <pre><code>require_once('C:/www/Zend/Loader/Autoloader.php');
  Zend_Loader_Autoloader::getInstance();
  </code></pre>
  
  <p>What's worse, is as I stated, this seems to happened at random.  Numerous calls to various autoloaded class methods will be made and then out of (seemingly) nowhere this error will happen.  The only way to stop the error from continuing to recur has been to restart the whole web server.  Then its back to a game of Russian roulette with the Zend Autoloader.</p>
  
  <p>I'm really pulling my hair out here and hope someone has an idea what could be going on.  I need to deploy this app across multiple systems soon but can't just tell their admins to restart the whole server whenever this bug occurs. :(</p>