-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Composer issues under Windows when installing from zip #2712
Comments
After 3 days of hard debugging I've actually found what the problem was - the path length was bigger than what windows allows. I honestly never thought this could be the problem, as I'm working with linux distributions most of the time! The path limit in windows 7 is around 260 characters, whoever there is a workaround - you could use In other words, if you're using composer under windows and the path is long - you're pretty much screwed. The only possible other workaround is to make a Source: |
Note that long path support on windows should be fixed in the upcoming PHP 5.6 |
It will be great if they fix it in 5.6. I will try the current alpha 2 to see if they haven't already. I wasn't aware they had plans on fixing it. Thank you for sharing! :) |
I'd be happy to get confirmation that it is indeed fixed so if you test |
I've deleted my previous comment so that people don't get confused. I managed to get the SSL certificate validation working in PHP 5.6 alpha 2. After reading the RFC regarding the TLS support, I've spotted the
Unfortunately, they still haven't fixed the long paths in alpha2 x86 and x64. I still get the same exception as before. Hopefully they eventually fix it. Edit: Just tested it with alpha3 (x86 and x64) - there is no change. The problem is still there. |
Ping @pierrejoye any news regarding long path support? |
Hello there,
I've been experiencing some problems with composer. For some unknown reason, the installation/update fails on every project when I don't use
--prefer-source
. The exception I'm getting is thatZipArchive
can't open the dependency file because the file is not existing. I did a lot of experimenting and this is not true. Composer downloads all project dependencies (as zip files) but as soon as it starts unzipping the first one, the zip file is deleted and it throws an exception.I really have no more ideas what the heck is wrong here. I've tried removing the repo caches from the user home dir, uninstalling and installing composer again, checked if
ZipArchive
is actually available in my php installation. Everything seems to be exactly as it should be.Here is some information regarding my system:
composer.json:
This is the output when trying
composer install
:The text was updated successfully, but these errors were encountered: