I’m using yii 1.0.9 with windows + apache 2.2.12 + php 5.3.0 + mysql 5.1.37
After reinstalling my WAMP environment i started having problems with the validateAttributes method when using a activeCheckBoxList.
In my model I have set no rules for it, I just do convert it to a string using implode on beforeSave (if it is an array = if it is set) and then convert it back to an array using the afterFind method…
Maybe the problem has something to do with my new php.ini but setting should be ok… so… could this be due to a bug with the php 5.3.0 version?
I’m sorry. the second error (“htmlspecialchars() expects parameter 1 to be string, array given”) is my fault as when it creates the record it redirects to an action that I’m not using… so don’t consider that one.
Your tip seems to have fixed it, thanks
anyway I’ve tried to install php 5.2.9 and saw that the problem was not there using it, so it is also due to 5.3.0 and probably to this:
"Parameter parsing API unification will cause some functions to behave more or less strict when it comes to type juggling"