$value = strval($value);
return $sth->bindParam($name, $value, PDO::PARAM_STR);
}
- return $sth->bindParam($name, $value, $this->type2pdo($this->type), $this->size());
+ $size = $this->size();
+ # Passing null to parameter #4 ($maxLength) of type int is deprecatedassing null to parameter #4 ($maxLength) of type int is deprecated
+ if ($size === null) $size = 0;
+ return $sth->bindParam($name, $value, $this->type2pdo($this->type), $size);
// NB 27.07.15 return $sth->bindParam($name, $value, $this->type2pdo($value));
}