note 24371 modified in function.create-function by jmcastagnetto

From: Date: Wed, 14 Aug 2002 20:49:59 +0000
Subject: note 24371 modified in function.create-function by jmcastagnetto
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-35026@lists.php.net to get a copy of this message
[Editor's note: Only regular variables are serialized (scalars, arrays, objects), and as lambda functions are not stored as any of those types, it is not saved during session serialization.] Warning, it seems that you can't store such lambda functions in Sessions, because only the function's name will be stored, not the function itself. So don't save the function but only it's code and call create_function each time the script is called. --was-- Warning, it seems that you can't store such lambda functions in Sessions, because only the function's name will be stored, not the function itself. So don't save the function but only it's code and call create_function each time the script is called. http://www.php.net/manual/en/function.create-function.php

« previous php.notes (#35026) next »