Create a valid local file location vs a URL
Create a valid local file location vs a URL

I got this fatal error when trying to utilize a cached "wp core download":

PHP Fatal error:  Uncaught exception 'UnexpectedValueException' with message 'Cannot create a phar archive from a URL like "C://Users/xxx/.wp-cli/cache/core/en_US-3.9.1.tar.gz". Phar objects can only be created from local files' in C:\Users\xxx\wp-cli\php\commands\core.php:93

I'm not sure if my pull is the best solution, but the comments seem to suggest that $home is only manually constructed on Windows, so removing the middle slash may work for everyone. It did for me. After making this change and running the command again, all was well.

I'm using PHP 5.5.9.0 on Windows 8.1.
rodrigoprimo/wp-cli,GaryJones/wp-cli,gitlost/wp-cli,pressednet/wp-cli,GaryJones/wp-cli,spiritedmedia/wp-cli,aaemnnosttv/wp-cli,heiglandreas/wp-cli,dpq/wp-cli,aaemnnosttv/wp-cli,nyordanov/wp-cli,pressednet/wp-cli,rohmann/wp-cli,trepmal/wp-cli,2ndkauboy/wp-cli,miya0001/wp-cli,here/wp-cli,Yas3r/wp-cli,GaryJones/wp-cli,JohnDittmar/wp-cli,ahmadawais/wp-cli,boonebgorges/wp-cli,shawnhooper/wp-cli,trepmal/wp-cli,a7127cff69cab32e5c4723e8446e21c4b7325dc/wp-cli,miya0001/wp-cli,a7127cff69cab32e5c4723e8446e21c4b7325dc/wp-cli,trepmal/wp-cli,pressednet/wp-cli,2ndkauboy/wp-cli,borekb/wp-cli,spiritedmedia/wp-cli,spiritedmedia/wp-cli,boonebgorges/wp-cli,gitlost/wp-cli,ahmadawais/wp-cli,JohnDittmar/wp-cli,macbookandrew/wp-cli,anttiviljami/wp-cli,a7127cff69cab32e5c4723e8446e21c4b7325dc/wp-cli,gitlost/wp-cli,duncanjbrown/wp-cli,boonebgorges/wp-cli,anttiviljami/wp-cli,aaemnnosttv/wp-cli,2ndkauboy/wp-cli,xwp/wp-cli,dpq/wp-cli,blueblazeassociates/wp-cli,miya0001/wp-cli,blueblazeassociates/wp-cli,shawnhooper/wp-cli,staylor/wp-cli,anttiviljami/wp-cli,JohnDittmar/wp-cli,Yas3r/wp-cli,staylor/wp-cli,macbookandrew/wp-cli,gedex/wp-cli,macbookandrew/wp-cli,nyordanov/wp-cli,ahmadawais/wp-cli,duncanjbrown/wp-cli,xwp/wp-cli,xwp/wp-cli,here/wp-cli,nyordanov/wp-cli,borekb/wp-cli,rodrigoprimo/wp-cli,Yas3r/wp-cli,borekb/wp-cli,staylor/wp-cli,heiglandreas/wp-cli,rodrigoprimo/wp-cli,rohmann/wp-cli,duncanjbrown/wp-cli,rohmann/wp-cli,gedex/wp-cli,dpq/wp-cli,blueblazeassociates/wp-cli,shawnhooper/wp-cli,gedex/wp-cli