Bug #15521 Updated: Can't call member function of an object in an array stored in a session
| From: | luny at sci dot fi | Date: | Fri, 15 Feb 2002 10:45:15 +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-345@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:
The bug still persists - ie. the bug was not the mistyped 1st line :P
Just wanted to make that clear..
Previous Comments:
------------------------------------------------------------------------
[2002-02-12 09:14:46] luny@sci.fi
Gah, the 1st line was supposed to look like this:
$tObjects = $HTTP_SESSION_VARS['tObjects']; // Array of objects
------------------------------------------------------------------------
[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