Oh the joys of case-insensitive filesystems… I'm looking at you NTFS and HFS+…
In your case, even after you downloaded the files from the server, you would only end up with one articles.php file since one would have overwritten the other.
I had a similar issue with a copy of my project from my MBP to my Ubuntu desktop. Certain composer libraries were refusing to auto-load. I tried running composer update and composer dump-autoload, and still no luck. I then did a manual require_once for the class I was trying to load, when I hit the same issue as you. Fixed it by wiping my vendor folder, and running composer install. Things get even more fun with VCS's that don't track case renames properly...
Glad you got it all sorted.
Cheers,
David
On 13/03/2014, at 7:19 AM, John Wynstra <
[hidden email]> wrote:
> Meant to send this to the list, but had only sent it to Marco.
>
> ================================================
>
> OK. I HAD declared the class twice, and it was not apparent until I logged
> onto the Linux server via putty to examine the directory. My Entites
> directory contained the following two files both declaring the same class:
>
> articles.php
> Articles.php
>
> ONLY ONE of them was present in my Zend Studio project. I had renamed the
> file in Zend Studio, but it did not delete the other file on the server.
> After discovering this, I even tried a download from server and the extra
> file did not come down.
>
> Thanks for offering to help. It was actually your request for a gist with
> file paths that caused me to discover this. I have no idea why I decided
> to log on to the server directly because I already had the project open in
> Zend Studio.
>
>
> On Tue, Mar 11, 2014 at 8:00 PM, Marco Pivetta <
[hidden email]> wrote:
>
>>
>>
>> On 7 March 2014 21:10, John Wynstra <
[hidden email]> wrote:
>>
>>> I am experimenting with Doctrine 2 in ZendFramework 2 and am getting the
>>> following error:
>>>
>>> PHP Fatal error: Cannot redeclare class Application\\Entity\\articles in
>>>
>>> ../../ZendSkeletonApplication/module/Application/src/Application/Entity/articles.php
>>> on line 8
>>>
>>
>> This looks like a typo of some kind. The information provided is
>> insufficient to debug the problem, though.
>>
>> Could you provide a gist with the file paths, autoloader config and file
>> contents of the class?
>>
>>
>> Marco Pivetta
>>
>>
http://twitter.com/Ocramius>>
>>
http://ocramius.github.com/>>
>>
>
>
> --
> ------------------------------------------------
> John Wynstra
> Library Information Systems Specialist
> Rod Library
> University of Northern Iowa
> Cedar Falls, IA 50613
>
[hidden email]
> (319)273-6399
> ------------------------------------------------
--
List:
[hidden email]
Info:
http://framework.zend.com/archivesUnsubscribe:
[hidden email]