Not sure if this is really related to windows only. I was getting php warnings/notices after the shutdown function has outputted the cookie so the install cannot continue when there is a notice in the $cli_cookie variable not a cookie.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

greg.1.anderson’s picture

@wapnik: Could you please confirm that your patch still works against HEAD? I reworked drush_shell_exec_interactive since you posted that.

wapnik’s picture

Status: Needs review » Needs work

It's not working with or without the patch.

wapnik’s picture

Status: Needs work » Needs review
FileSize
653 bytes

But this is working fine.

greg.1.anderson’s picture

Status: Needs review » Needs work

I'm a little confused by this patch. Why does turning off error reporting help the situation? A comment is needed explaining the motivation. Also, if you turn error reporting off, you should turn it back on again once the critical section has passed.

wapnik’s picture

As mentioned in the post itself, on windows if you are running a command with a redirection 2>&1 and that command is php (as far as i've observed), notices which should normally appear before the output from the shutdown function are delayed and outputed later. Therefore you don't get the unserialized cookie (that's the output of the shutdown function) in the last line of the command's output, but a php notice. And the setup cannot continue then.

I cannot really figured out why is this happening. I only noticed this when using 2>&1 at the end of the command and expected behavior when using a command without a redirect. The fix for that was the first patch before you changed drush_shell_exec_interactive(). Now i don't see any other solution besides disabling those notices.

greg.1.anderson’s picture

Okay, I think that's fine, but the patch should include a comment. If error reporting must stay off for the full context of where $output is used, or if there is no way to turn it back on, then you do not need to turn it back on. Otherwise you should.

wapnik’s picture

Status: Needs work » Needs review
FileSize
908 bytes

Something like this?

greg.1.anderson’s picture

Title: site install 6 on windows » drush usage of drush_op('system', ...) is inconsistent regarding expectation of return value (e.g. site-install)
Priority: Normal » Critical
FileSize
9.07 KB
greg.1.anderson’s picture

Status: Needs review » Reviewed & tested by the community

Improper hijacking of issue. #8 does not solve #7. I'm going to make a separate issue for #8, then commit #7.

greg.1.anderson’s picture

Title: drush usage of drush_op('system', ...) is inconsistent regarding expectation of return value (e.g. site-install) » site install 6 on windows
Priority: Critical » Normal
greg.1.anderson’s picture

Status: Reviewed & tested by the community » Fixed

Committed.

Status: Fixed » Closed (fixed)

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