note 36800 modified in function.is-a by andrey

From: Date: Tue, 27 Jan 2004 18:34:26 +0000
Subject: note 36800 modified in function.is-a by andrey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-64279@lists.php.net to get a copy of this message
The previous note is incorrect. You need not manually serialize and deserialize objects for use in sessions. This is handled automatically by PHP. See Chapter 13 of the manual, under section entitled "Serializing objects - objects in sessions" However, it is correct in that you MUST include the class definition BEFORE starting a session. [Editor's note : PHP5 has the __autoload() feature - so, the __autoload() will be called if it's available to load the class. So when trying to deserialize an object which is an instance of a class which is not still known to PHP __autoload() will be called. andrey] --was-- The previous note is incorrect. You need not manually serialize and deserialize objects for use in sessions. This is handled automatically by PHP. See Chapter 13 of the manual, under section entitled "Serializing objects - objects in sessions" However, it is correct in that you MUST include the class definition BEFORE starting a session. http://www.php.net/manual/en/function.is-a.php

« previous php.notes (#64279) next »