composer/composer — Issue #45: Fatal error when installing monolog
Author: bergie
Created: 2011-10-11 10:47:56+00:00
State: open

Using the composer.json from the README:

{
"name": "my-project",
"version": "1.0.0",
"require": {
"monolog/monolog": "1.0.0"
}
}

With today's composer.phar I get:

$ php composer.phar install
PHP Notice: Undefined offset: 56 in phar:///home/bergie/Projects/tmp/phpflo-test/composer.phar/src/Composer/DependencyResolver/Solver.php on line 2
PHP Stack trace:
PHP 1. {main}() /home/bergie/Projects/tmp/phpflo-test/composer.phar:0
PHP 2. require() /home/bergie/Projects/tmp/phpflo-test/composer.phar:15
PHP 3. Symfony\Component\Console\Application->run() phar:///home/bergie/Projects/tmp/phpflo-test/composer.phar/bin/composer:48
PHP 4. Composer\Console\Application->doRun() phar:///home/bergie/Projects/tmp/phpflo-test/composer.phar/src/Symfony/Component/Console/Application.php:2
PHP 5. Symfony\Component\Console\Application->doRun() phar:///home/bergie/Projects/tmp/phpflo-test/composer.phar/src/Composer/Console/Application.php:2
PHP 6. Symfony\Component\Console\Command\Command->run() phar:///home/bergie/Projects/tmp/phpflo-test/composer.phar/src/Symfony/Component/Console/Application.php:2
PHP 7. Composer\Command\InstallCommand->execute() phar:///home/bergie/Projects/tmp/phpflo-test/composer.phar/src/Symfony/Component/Console/Command/Command.php:2
PHP 8. Composer\DependencyResolver\Solver->solve() phar:///home/bergie/Projects/tmp/phpflo-test/composer.phar/src/Composer/Command/InstallCommand.php:10
PHP 9. Composer\DependencyResolver\Solver->createTransaction() phar:///home/bergie/Projects/tmp/phpflo-test/composer.phar/src/Composer/DependencyResolver/Solver.php:2
PHP Fatal error: Call to a member function getLiterals() on a non-object in phar:///home/bergie/Projects/tmp/phpflo-test/composer.phar/src/Composer/DependencyResolver/Solver.php on line 2
PHP Stack trace:
PHP 1. {main}() /home/bergie/Projects/tmp/phpflo-test/composer.phar:0
PHP 2. require() /home/bergie/Projects/tmp/phpflo-test/composer.phar:15
PHP 3. Symfony\Component\Console\Application->run() phar:///home/bergie/Projects/tmp/phpflo-test/composer.phar/bin/composer:48
PHP 4. Composer\Console\Application->doRun() phar:///home/bergie/Projects/tmp/phpflo-test/composer.phar/src/Symfony/Component/Console/Application.php:2
PHP 5. Symfony\Component\Console\Application->doRun() phar:///home/bergie/Projects/tmp/phpflo-test/composer.phar/src/Composer/Console/Application.php:2
PHP 6. Symfony\Component\Console\Command\Command->run() phar:///home/bergie/Projects/tmp/phpflo-test/composer.phar/src/Symfony/Component/Console/Application.php:2
PHP 7. Composer\Command\InstallCommand->execute() phar:///home/bergie/Projects/tmp/phpflo-test/composer.phar/src/Symfony/Component/Console/Command/Command.php:2
PHP 8. Composer\DependencyResolver\Solver->solve() phar:///home/bergie/Projects/tmp/phpflo-test/composer.phar/src/Composer/Command/InstallCommand.php:10
PHP 9. Composer\DependencyResolver\Solver->createTransaction() phar:///home/bergie/Projects/tmp/phpflo-test/composer.phar/src/Composer/DependencyResolver/Solver.php:2

Yesterday's composer.phar gives me:

[UnexpectedValueException]
Invalid version string master-dev

Interestingly, yesterday the composer.phar worked with monolog.