php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #23315 Array of Objects in Session produces an 'PHP_Incomplete_Class Object'
Submitted: 2003-04-23 09:35 UTC Modified: 2003-04-23 09:39 UTC
From: asnagy at syr dot edu Assigned:
Status: Not a bug Package: Session related
PHP Version: 4.3.0 OS: Redhat 7.2
Private report: No CVE-ID: None
 [2003-04-23 09:35 UTC] asnagy at syr dot edu
I am keeping an array of objects in my session array.  This does not work as it creates an Incomplete Object, here is an example, as you can see in the object within the 'survey' array is an 'Incomplete Object'.  

Array
(
    [session_objects] => Array
        (
            [member] => member Object
                (
                    [_DB_DataObject_version] => 1.0
                    [__table] => member
                    [N] => 1
                    [_database_dsn] => 
                    [_database_dsn_md5] => fd3a974639bb48378f4778bebb95e22e
                    [_database] => chinwag
                    [_condition] =>  WHERE id = '1e7211819204a4905f5b1aba09b127b3'
                    [_group_by] => 
                    [_order_by] => 
                    [_limit] => 
                    [_data_select] => *
                    [_DB_resultid] => 3
                    [_link_loaded] => 
                    [_join] => 
                    [_lastError] => 
                    [id] => 1e7211819204a4905f5b1aba09b127b3
                    [username] => asnagy
                    [first_name] => Andrew
                    [last_name] => Nagy
                    [last_login] => 2003-04-23 10:05:16
                    [old_login] => 2003-04-23 09:19:31
                )

            [survey] => Array
                (
                    [survey] => __PHP_Incomplete_Class Object
                        (
                            [__PHP_Incomplete_Class_Name] => survey
                            [_DB_DataObject_version] => 1.0
                            [__table] => survey
                            [N] => 1
                            [_database_dsn] => 
                            [_database_dsn_md5] => fd3a974639bb48378f4778bebb95e22e
                            [_database] => chinwag
                            [_condition] => 
                            [_group_by] => 
                            [_order_by] => 
                            [_limit] => 
                            [_data_select] => *
                            [_DB_resultid] => 5
                            [_link_loaded] => 
                            [_join] => 
                            [_lastError] => 
                            [id] => 95c58f49823e0e4334e8827b8059140d
                            [stamp] => 2003-04-18 16:05:09
                            [title] => Test 2
                            [category] => aksldjflkas djfl
                            [description] => 
                            [startdate] => 
                            [enddate] => 
                            [published] => f
                        )

                )

        )

)

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-23 09:39 UTC] alan_k@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

you need to make sure that all the classes reference by the session object are loaded before you call session start.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 09:01:28 2024 UTC