Re: More clarification - Re: [PEAR] Can you serialize a Formbuilder object?
| From: | Joshua Eichorn | Date: | Mon, 27 Jun 2005 21:58:07 +0000 |
| Subject: | Re: More clarification - Re: [PEAR] Can you serialize a Formbuilder object? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-19791@lists.php.net to get a copy of this message | ||
This is just the way php works. There is no solution for php4 except for making sure all the classes are included before unserialize.
If your using php5 you can use autoload to include the files as needed.
Or if your really cool you could write your own unserializer that required the classes as it hit them.
-josh
Andrew Wooldridge wrote:
On the first creation of the $fb FormBuilder object, this HTML code is generated by echo print_r($fb); (Notice the array elements are QuickForm_header and QUickForm_hidden rather than __PHP_Incomplete_Class)