php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: luny at sci dot fi
New email:
PHP Version: OS:

 

 [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

Patches

Pull Requests

History

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: Sat Dec 21 16:01:28 2024 UTC