AHeimlich wrote:
http://framework.zend.com/fisheye/changelog/Zend_Framework?cs=1662&csize=1
Maybe I'm missing something here, but now that __get/__set/__isset/__unset
have been made protected, how are we supposed to get at session data using
Zend_Session? Subclasses (that seems rather unnecessary if you ask me)? What
kinds of missuse do you see this preventing?
what version of php are you using?
$session = new Zend_Session();
$session->some_variable = "blah";
should work fine in any php >= 5.1.0
The reason it was made protected was to prevent the masses from using
the __get()/__set()/__isset()/__unset() methods directly, as that usage
is frowned upon.. ie: $session->__get($name);
The reason is to protect from unintentional misuse. As this scenario:
$session = new Zend_Session();
$var = array('foo'=>'bar');
$session->__set($var, 'value');
Would produce unexpected results.
-ralph