protected function pushEnv($block = null) { $env = new stdClass(); $env->parent = $this->env; $env->store = array(); $env->block = $block; $env->depth = isset($this->env->depth) ? $this->env->depth + 1 : 0; $this->env = $env; return $env; }