note 60783 deleted from function.serialize by aharvey

From: Date: Tue, 06 Nov 2012 02:10:10 +0000
Subject: note 60783 deleted from function.serialize by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191768@lists.php.net to get a copy of this message
Note Submitter: ---- I use PHP 4.3.10 and I found out that if you use a class "MyClass", the constructor of the class must be called "__construct()" and NOT "MyClass()" like in Java or other languages. If you use the "MyClass()" constructor, the following won't work : $_SESSION['obj_my_class'] = new MyClass(); If you don't believe me, you can have a look in the directory "session.save_path" (default /var/lib/php4) where is stored the session's file. You will see this : obj_my_class|N; and not your complete class! It took me almost one day to understand what was happening... :-(

« previous php.notes (#191768) next »