I've got a web application that I'm building on the FuelPHP framework. My local development environment is running PHP 5.4 while my server is running PHP 5.3. In my development environment, from my main template file, I'm able to
<?php var_dump($this->active_request); ?>
This results in a bunch of data about the request (a Fuel\Core\Request object) being dumped into a modal dialog box for me to reference. However, when I try to run the exact same script on the production server (PHP 5.3), it gives me the old "ErrorException [ Error ]: Using $this when not in object context"
I'm aware of the difference between using instantiated objects and statically accessed methods. My question is, why would the different versions of PHP treat the same template file as having a different context? Or is there some other configuration nuance that would result in the apparently divergent functionality of the two environments?