Fixed issues with command arguments and pcntl extention

- Fixed input command argument `without-signals` and `debug` to return only a boolean. Actually arguments are always false.

- Added some unit tests on command.

- Fixed pcntl extention problem : Php function `pcntl_signal_dispatch()` was always called even if we were using `without-signals`.