Php: how to resolve "Cannot redeclare class" when there's no "previously declared"
<p>I want to test the phpDocumentor-alpha, and there's a problem that some people seems <strong>not</strong> to have:</p>

<pre><code># sudo pear uninstall phpdoc/phpDocumentor-alpha
uninstall ok: channel://pear.phpdoc.org/phpDocumentor-2.0.0a6
olivier@olivier-ubuntu ~/Documents/pizzas/dev # phpdoc --help
bash: /usr/bin/phpdoc: Aucun fichier ou dossier de ce type
# 
# sudo pear install --alldeps -f phpdoc/phpDocumentor-alpha
downloading phpDocumentor-2.0.0a6.tgz ...
Starting to download phpDocumentor-2.0.0a6.tgz (1,107,853 bytes)
..................................done: 1,107,853 bytes
install ok: channel://pear.phpdoc.org/phpDocumentor-2.0.0a6
# phpdoc --help
PHP Fatal error:  Cannot redeclare class phpDocumentor\Plugin\Core\Listener in /usr/share/php/phpDocumentor/src/phpDocumentor/Plugin/Core/Listener.php on line 194

Fatal error: Cannot redeclare class phpDocumentor\Plugin\Core\Listener in /usr/share/php/phpDocumentor/src/phpDocumentor/Plugin/Core/Listener.php on line 194
# 
</code></pre>

<p>Ok, i can avoid that problem with:</p>

<pre><code>if ( !class_exists('MTIHelperEstadosLocal') ) {...}
</code></pre>

<p>But this is just an ugly workaround. I'd like to know if there's a way to know where the declaration was firt (= which include or whatever).</p>

<p>Any idea?</p>
