Skip to content

Commit 9e3d7df

Browse files
committed
Merge pull request #173 from jpetitcolas/bad_method_call_details
Give more details when function is disabled in php.ini
2 parents df86735 + d20bca3 commit 9e3d7df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Command/BaseConsumerCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
6363

6464
if (!AMQP_WITHOUT_SIGNALS && extension_loaded('pcntl')) {
6565
if (!function_exists('pcntl_signal')) {
66-
throw new \BadFunctionCallException("This function is referenced in the php.ini 'disable_functions' and can't be called.");
66+
throw new \BadFunctionCallException("Function 'pcntl_signal' is referenced in the php.ini 'disable_functions' and can't be called.");
6767
}
6868

6969
pcntl_signal(SIGTERM, array(&$this, 'stopConsumer'));

RabbitMq/BaseConsumer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ protected function maybeStopConsumer()
4949
{
5050
if (extension_loaded('pcntl') && (defined('AMQP_WITHOUT_SIGNALS') ? !AMQP_WITHOUT_SIGNALS : true)) {
5151
if (!function_exists('pcntl_signal_dispatch')) {
52-
throw new \BadFunctionCallException("This function is referenced in the php.ini 'disable_functions' and can't be called.");
52+
throw new \BadFunctionCallException("Function 'pcntl_signal_dispatch' is referenced in the php.ini 'disable_functions' and can't be called.");
5353
}
5454

5555
pcntl_signal_dispatch();

0 commit comments

Comments
 (0)