Re: Fatal error: Unsupported operand types

From: Date: Sun, 16 Apr 2006 11:23:33 +0000
Subject: Re: Fatal error: Unsupported operand types
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-234073@lists.php.net to get a copy of this message
kmh496 wrote:
can somebody explain why
            $this->param = $this->SYSTEM->db->answer + $this->param;
is causing the error
no. because: a, you don't mention the version of php you use b, we don't have knowledge of you codebase (posting code listings for a complete class really isn't going to help much) have you tried to debug the problem? using print_r() or var_dump()? e.g.: ...
Fatal error: Unsupported operand types in /var/www/current/mjguest/modules/settings.php on line 52 context is
        function settings(&$SYSTEM)
        {
            $this->SYSTEM = &$SYSTEM;
            $this->SYSTEM->db->ask(1, 'settings_load');
            $this->SYSTEM->db->get_row();
echo '<pre>'; var_dump($this->SYSTEM->db->answer, $this->param) echo '</pre>';
            $this->param = $this->SYSTEM->db->answer + $this->param;
        }


« previous php.general (#234073) next »