ID: 15521
Updated by: [EMAIL PROTECTED]
-Summary: Can't call member function of an object in an array
stored in a session
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Closed
Bug Type: Class/Object related
Operating System: Win NT/2000
PHP Version: 4.1.1
New Comment:
This was my bug elsewhere in the code. So the PHP does not have the bug
described.
Previous Comments:
------------------------------------------------------------------------
[2002-02-15 05:45:14] [EMAIL PROTECTED]
The bug still persists - ie. the bug was not the mistyped 1st line :P
Just wanted to make that clear..
------------------------------------------------------------------------
[2002-02-12 09:14:46] [EMAIL PROTECTED]
Gah, the 1st line was supposed to look like this:
$tObjects = $HTTP_SESSION_VARS['tObjects']; // Array of objects
------------------------------------------------------------------------
[2002-02-12 09:11:04] [EMAIL PROTECTED]
$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