This adapter generates a parsable PHP code representation using var_export(). On restoring, the data will be executed using eval.
There are no configuration options for this adapter.
Unserializing objects
Objects will be serialized using the __set_state magic method. If the class doesn't implement this method, a fatal error will occur during execution.
Uses eval()
The PhpCode adapter utilizes eval()
to unserialize. This introduces both a performance and potential security issue as a
new process will be executed. Typically, you should use the
PhpSerialize adapter unless you require human-readability
of the serialized data.




