Page MenuHomeIn-Portal Phabricator
  • Changed Files
  • branches/5.2.x/core/kernel/utility/debugger.php

INP-1825 - Show In-Portal-specific superglobals in Debugger
ClosedPublic

Authored by alex on Sep 8 2022, 9:03 AM.

Details

Test Plan
  1. in the Admin Console
    1. login to the Admin Console
    2. go to ConfigurationWebsiteGeneral section
  2. in IDE:
    1. open /system/debug.php file for editing
    2. uncomment DBG_REDIRECT key of the $dbg_options array
    3. save changes
    4. open /core/kernel/utility/http_query.php file for editing
    5. change $this->Get = $this->AddVars($_GET); into $this->Get = $this->AddVars($_GET + array('virtual_get' => 'virtual_get_val'));
    6. change $this->Post = $this->AddVars($_POST); into $this->Post = $this->AddVars($_POST + array('virtual_post' => 'virtual_post_val'));
    7. change $this->Cookie = $this->AddVars($_COOKIE); into $this->Cookie = $this->AddVars($_COOKIE + array('virtual_cookie' => 'virtual_cookie_val'));
    8. save changes
  3. in the Admin Console
    1. press Save button on the toolbar
    2. open Debugger by pressing Show Debugger button the Debugger Toolbar
    3. confirm, that in Debugger:
      • Web Request information is shown in the usual place
      • there is GE virtual_get virtual_get_val line
      • there is PO virtual_post virtual_post_val line
      • there is CO virtual_cookie virtual_cookie_val line

Diff Detail

Repository
rINP In-Portal
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

alex created this revision.Sep 8 2022, 9:03 AM
alex requested review of this revision.Sep 8 2022, 9:03 AM
alex added a child revision: Restricted Differential Revision.Sep 8 2022, 9:58 AM
erik accepted this revision.Sep 9 2022, 9:34 AM
This revision is now accepted and ready to land.Sep 9 2022, 9:34 AM
This revision was landed with ongoing or failed builds.Sep 13 2022, 7:31 AM
This revision was automatically updated to reflect the committed changes.