Bug #808
PHP Shell - $config doesn't work but $GLOBALS["config"] does.
| Status: | Feedback | Start date: | 08/07/2010 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assignee: | - | % Done: | 100% |
|
| Category: | Developer tools | |||
| Target version: | - | |||
| Affected version: | All | Affected Architecture: |
Description
(from cvstrac)
The PHP shell's "help" output refers to using $config - but $config apparently isn't declared as global, because it doesn't work. However, using $GLOBALS["config"] does work.
Seems like the help text should be updated to reference $GLOBALS["config"] style syntax, or $config should be declared global before eval() is run on the shell input.
Associated revisions
Declare $config as global before interactive PHP shell command evaluation. Fixes #808
History
#1
Updated by Jim P 3 months ago
- Status changed from New to Feedback
- % Done changed from 0 to 100
Applied in changeset bde982dd5aad41254273300676d1d5c2ecf367c3.