Bug #808

PHP Shell - $config doesn't work but $GLOBALS["config"] does.

Added by Chris Buechler almost 3 years ago. Updated 3 months ago.

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

Revision bde982dd
Added by Jim P 3 months ago

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

Also available in: Atom PDF