I've been trying to get $_GET/$_POST support working for the entire day already, but I don't seem to be very lucky at this, unfortunately.
It definitely doesn't seem to be supported by default, so I tried to integrate it myself. I've tried the following approaches, without much luck. Would you guys be able to tell me what's up?
- Add/Dump $_GET/$_POST in
Executor.php's execute function, at the point where $scope->symbolTable is assigned.
- Adding
array's/Zval::ptrFactory's/Zval:factory's/Zval::<other stuff> to $this->symbolTable in ExecutorGlobals.php's __construct.
- Dumping data in
OpLines/FetchGlobalVariables.php's execute handler, to receive a notification of reading a global.
- Some other stuff..
Other than that, I'm really amazed by how clean the PHP code is, very good job on that one! Hopefully globals will be supported soon.
Also, I noticed that var_dump($GLOBALS); results in an infinite loop.
Cheers,
Jurriaan
I've been trying to get
$_GET/$_POSTsupport working for the entire day already, but I don't seem to be very lucky at this, unfortunately.It definitely doesn't seem to be supported by default, so I tried to integrate it myself. I've tried the following approaches, without much luck. Would you guys be able to tell me what's up?
Executor.php'sexecutefunction, at the point where$scope->symbolTableis assigned.array's/Zval::ptrFactory's/Zval:factory's/Zval::<other stuff>to$this->symbolTableinExecutorGlobals.php's__construct.OpLines/FetchGlobalVariables.php'sexecutehandler, to receive a notification of reading a global.Other than that, I'm really amazed by how clean the PHP code is, very good job on that one! Hopefully globals will be supported soon.
Also, I noticed that
var_dump($GLOBALS);results in an infinite loop.Cheers,
Jurriaan