If you are running PHP on certain RHEL distributions like CentOS POSIX support is off by default.

When posix support is missing running:
drush site-set @dev yields no output
drush site-set @dev -v yields "Command dispatch complete"
It is important to note that in these circumstances a persistent alias is not set.

For CentOS a user could fix this by running yum install php-process followed by an apache restart.
Currently the only way to know POSIX is the cause is to read through the drush include files. It would be better under these circumstances to throw an error to help newer users debug the issue.

Patch to follow.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Darren Shelley’s picture

Status: Active » Needs review
FileSize
1.19 KB

Patch attached to add error reporting, please review.

Thankyou

Darren Shelley’s picture

Issue summary: View changes

improve english

moshe weitzman’s picture

Status: Needs review » Needs work

Technically, that should go in a validate hook in the same file. See docs/drush.api.php

Darren Shelley’s picture

Thank you for the advice, I have reviewed the API documentation and revised the patch.

The patch now provides a validation callback for site-set.

The error message has been written more generically and in line with existing standards to provide easier scope for translation in the future.

Darren Shelley’s picture

Status: Needs work » Needs review
greg.1.anderson’s picture

This looks fine to me. I wonder if we should consider a general feature in command.inc to support "php function dependencies" to go with "drush dependencies" and "drupal dependencies"? Could be a follow-on issue.

moshe weitzman’s picture

Status: Needs review » Fixed

Committed to 5 and 6. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

enhance bug report, explain the end result of the function not just the output via cli