|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15521 Can't call member function of an object in an array stored in a session
Submitted: 2002-02-12 09:11 UTC Modified: 2002-02-19 08:18 UTC
From: luny at sci dot fi Assigned:
Status: Closed Package: Class/Object related
PHP Version: 4.1.1 OS: Win NT/2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
Solve the problem:
44 + 2 = ?
Subscribe to this entry?

 [2002-02-12 09:11 UTC] luny at sci dot 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


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-02-12 09:14 UTC] luny at sci dot fi
Gah, the 1st line was supposed to look like this:
$tObjects = $HTTP_SESSION_VARS['tObjects']; // Array of objects

 [2002-02-15 05:45 UTC] luny at sci dot fi
The bug still persists - ie. the bug was not the mistyped 1st line :P Just wanted to make that clear..
 [2002-02-19 08:18 UTC] luny at sci dot fi
This was my bug elsewhere in the code. So the PHP does not have the bug described.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Jun 25 01:01:28 2024 UTC