if you are using a (self compiled) php environment with a version string like this "5.3.8+someString" you will get an UnexpectedValueException if you defined a minimum php version in the composer.json:
The exception is thrown by VersionParser->normalize(). According to the PHP docu (e.g. http://php.net/manual/en/function.version-compare.php) this kind of version string should be valid.
What's your exact version number from php -v?
I noticed it on this version: PHP 5.3.13+selfCompiled5
Alright, we supported -foo, I had never seen it with a +, but it should now work.
nice... thank you
Add support for ~/+ in addition to - as separator between PHP version…
… and build details, fixes #1322