Closed (fixed)
Project:
Drush
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2009 at 18:31 UTC
Updated:
28 Apr 2009 at 15:30 UTC
Jump to comment: Most recent file
context.inc/_drush_config_file($context) references $configs[$context] without checking for its existence, causing PHP warnings, which can include a stack dump and thus be really annoying.
The patch just tests for the existence of the key, and returns NULL if it is missing.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | php_warnings.patch | 1.17 KB | fgm |
| context.patch | 639 bytes | fgm |
Comments
Comment #1
fgmSimilar problem in
includes/command.inc/drush_parse_args(). The function invokesdrush_set_context('options', $options);although$optionsmay be undefined if there is no current context.Patch initializes $options to an empty array, which is the value set in drupal_get_context() when the context is uninitialized.
Since the two are related, combining in a single patch.
Comment #2
moshe weitzman commentedthink we fixed these.