Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[Console] Throwable exceptions not handled properly, exit code is 0 #20775

Copy link
Copy link
Closed
@fredplante

Description

@fredplante
Issue body actions

Given an new symfony 3.2 project, with this simple Command :

<?php
namespace AppBundle\Command;

use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class DemoCommand extends Command
{
    protected function configure()
    {
      $this->setName('app:demo');
    }

    protected function execute(InputInterface $input, OutputInterface $output)
    {
      $input->checkYourself();
    }
}

Running under PHP 5.6.24 :

bin/console app:demo
[output an UndefinedMethodException]
echo $?
255

Running under PHP 7.0.8 :

bin/console app:demo
[output an UndefinedMethodException]
echo $?
0

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.