note 62502 deleted from function.unserialize by aharvey

From: Date: Tue, 06 Nov 2012 01:27:19 +0000
Subject: note 62502 deleted from function.unserialize by aharvey
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-191700@lists.php.net to get a copy of this message
Note Submitter: fhummel at hotmail dot com ---- I have noticed that using the eval function as described in other posts might produce class redefinitions if separate class files are used and included. My solution was to include_once at the top all .php files with classes that will be used on a particular page. This way the class definition exists when unserialize is called and you get the no duplicate check for free by using include_once. Maybe someone can chime in on how this might affect performance.

« previous php.notes (#191700) next »