On drush first run on CentOS 5.4, the file includes/table.inc appears and contains a lot of syntax errors.

All single quotes are written 2 times, so define('CONSOLE_TABLE_HORIZONTAL_RULE', 1); becomes define(''CONSOLE_TABLE_HORIZONTAL_RULE'', 1); and so on until EOF.

On another server with Gentoo no includes/table.inc file appears.
All packages suffer from this Issue.

Is this file generated or downloaded? I'm worried about this problem replicating on other drush operations.

Comments

FeBus982’s picture

Priority: Major » Normal

A little code exploration showed about this file being downloaded, so other operation should be safe.

Php code from modules downloaded with pm-download apperas to be correct.

jonhattan’s picture

Status: Active » Postponed (maintainer needs more info)

Perhaps it is a problem with your php version/ environment and this part of includes/environment.inc:

      if ($file = @file_get_contents(DRUSH_TABLE_URL)) {
        @file_put_contents($tablefile, $file);
      }
greg.1.anderson’s picture

Version: » 8.x-6.x-dev
Status: Postponed (maintainer needs more info) » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to closed (duplicate).

Please ask support questions on Drupal Answers.