note 62502 added to function.unserialize
| From: | fhummel at hotmail dot com | Date: | Thu, 02 Mar 2006 05:37:19 +0000 |
| Subject: | note 62502 added to function.unserialize | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-104668@lists.php.net to get a copy of this message | ||
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.
----
Server IP: 216.194.113.175
Probable Submitter: 24.1.97.119
----
X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER
autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.unserialize.php
Edit -- http://master.php.net/note/edit/62502
Del: integrated -- http://master.php.net/note/delete/62502/integrated
Del: useless -- http://master.php.net/note/delete/62502/useless
Del: bad code -- http://master.php.net/note/delete/62502/bad+code
Del: spam -- http://master.php.net/note/delete/62502/spam
Del: non-english -- http://master.php.net/note/delete/62502/non-english
Del: in docs -- http://master.php.net/note/delete/62502/in+docs
Del: other reasons-- http://master.php.net/note/delete/62502
Reject -- http://master.php.net/note/reject/62502
Search -- http://master.php.net/manage/user-notes.php