When I try to bind an overloaded property in the PDOStatement :: bindParam method,
$stmt->bindParam(':'.$field.'', $this->$field, $pdoparam); ... public function __get($param) { if(isset($this->$param)) return $this->$param; }
I get a notification
Notice: Indirect modification of overloaded property Msgs::$posttime has no effect in ...
After some research, I found a bug report of a similar problem on php.net. The proposed solution is to add the definition of a and before __get.
&__get(...
But when I try to do this, I get another notification
Notice: Only variable references should be returned by reference in ...
The PHP version is 5.3.8.
Is there any solution to this problem?
source share