jubianchi / phpswitch

A CLI utility to help you build and test PHP versions
http://jubianchi.github.io/phpswitch/
MIT License
90 stars 8 forks source link

Notice: Undefined index: in PhpSwitch/Config/Dumper.php on line 31 #7

Closed lyrixx closed 11 years ago

lyrixx commented 11 years ago

Hello.

I got a little notice (on 3f672fa):


Building 5.4.12
    /opt/phpswich/phpswitch/.phpswitch/installed/php-5.4.12
[======================>===========================]g

Moving configuration file
    From: /opt/phpswich/phpswitch/.phpswitch/sources/php-5.4.12/php.ini-development
    To: /opt/phpswich/phpswitch/.phpswitch/installed/php-5.4.12/etc/php.ini
PHP Notice:  Undefined index:  in /opt/phpswich/phpswitch/src/jubianchi/PhpSwitch/Config/Dumper.php on line 31
PHP Stack trace:
PHP   1. {main}() /opt/phpswich/phpswitch/bin/phpswitch:0
PHP   2. jubianchi\PhpSwitch\PhpSwitch->run() /opt/phpswich/phpswitch/bin/phpswitch:15
PHP   3. Symfony\Component\Console\Application->run() /opt/phpswich/phpswitch/src/jubianchi/PhpSwitch/PhpSwitch.php:54
PHP   4. Symfony\Component\Console\Application->doRun() /opt/phpswich/phpswitch/vendor/symfony/console/Symfony/Component/Console/Application.php:106
PHP   5. Symfony\Component\Console\Command\Command->run() /opt/phpswich/phpswitch/vendor/symfony/console/Symfony/Component/Console/Application.php:193
PHP   6. jubianchi\PhpSwitch\Console\Command\PHP\InstallCommand->execute() /opt/phpswich/phpswitch/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:240
PHP   7. jubianchi\PhpSwitch\Config\Configuration->dump() /opt/phpswich/phpswitch/src/jubianchi/PhpSwitch/Console/Command/PHP/InstallCommand.php:125
PHP   8. jubianchi\PhpSwitch\Config\Dumper->dump() /opt/phpswich/phpswitch/src/jubianchi/PhpSwitch/Config/Configuration.php:126

Notice: Undefined index:  in /opt/phpswich/phpswitch/src/jubianchi/PhpSwitch/Config/Dumper.php on line 31

Call Stack:
    0.0002     122288   1. {main}() /opt/phpswich/phpswitch/bin/phpswitch:0
    0.0046     224732   2. jubianchi\PhpSwitch\PhpSwitch->run() /opt/phpswich/phpswitch/bin/phpswitch:15
    0.0995    2197128   3. Symfony\Component\Console\Application->run() /opt/phpswich/phpswitch/src/jubianchi/PhpSwitch/PhpSwitch.php:54
    0.1036    2387064   4. Symfony\Component\Console\Application->doRun() /opt/phpswich/phpswitch/vendor/symfony/console/Symfony/Component/Console/Application.php:106
    0.1044    2387968   5. Symfony\Component\Console\Command\Command->run() /opt/phpswich/phpswitch/vendor/symfony/console/Symfony/Component/Console/Application.php:193
    0.1054    2390748   6. jubianchi\PhpSwitch\Console\Command\PHP\InstallCommand->execute() /opt/phpswich/phpswitch/vendor/symfony/console/Symfony/Component/Console/Command/Command.php:240
  421.3135    2933320   7. jubianchi\PhpSwitch\Config\Configuration->dump() /opt/phpswich/phpswitch/src/jubianchi/PhpSwitch/Console/Command/PHP/InstallCommand.php:125
  421.3135    2933396   8. jubianchi\PhpSwitch\Config\Dumper->dump() /opt/phpswich/phpswitch/src/jubianchi/PhpSwitch/Config/Configuration.php:126

PHP version 5.4.12 was installed:
    /opt/phpswich/phpswitch/.phpswitch/installed/php-5.4.12
jubianchi commented 11 years ago

Sorry for this bug! I definetly have to put some tests in place to ensure that install process goes well.

I'll issue a fix ASAP but your PHP should be installed properly. This error says that phpswitch was not able to dump the configure line to your configuration so you won't be able to reuse it to build other PHP version.

I hope this is not critical to you.

Thank for the report.