Bug #15521 Updated: Can't call member function of an object in an array stored in a session

From: Date: Tue, 12 Feb 2002 14:14:47 +0000
Subject: Bug #15521 Updated: Can't call member function of an object in an array stored in a session
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-185@lists.php.net to get a copy of this message
ID: 15521 Updated by: luny@sci.fi -Summary: Can't call member function of an object in an array stored in a session Reported By: luny@sci.fi Status: Open Bug Type: Class/Object related Operating System: Win NT/2000 PHP Version: 4.1.1 New Comment: Gah, the 1st line was supposed to look like this: $tObjects = $HTTP_SESSION_VARS['tObjects']; // Array of objects Previous Comments: ------------------------------------------------------------------------ [2002-02-12 09:11:04] luny@sci.fi $tObjects = $HTTP_SESSION_VARS['$tObjects']; // Array of objects $tObjects[0]->m_nVariable = 0; // OK $tObjects[0]->MemberFunction(); // Fatal error: Call to a member function on a non-object ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=15521&edit=1

« previous php.bugs (#185) next »