renatocassino / dephpugger

Php Debugger to run in terminal to debug your code easily.
MIT License
200 stars 14 forks source link

Globals #9

Closed renatocassino closed 7 years ago

renatocassino commented 7 years ago

The DBGP protocol does not return a global variable in command property_get. New way to get the global variable. If you add to a $GLOBALS you can return.

Imagine, that you want to get $_GET['page']. The property_get return null. But if you make an eval with this command.

$GLOBALS['a-random-value-here']=$_GET['page']

The return is the $_GET['page'].