_sanitizeClob touches no instance variables

This commit is contained in:
Felix J. Ogris 2022-11-04 21:25:53 +01:00
parent 604c931875
commit 75d28ef423

View File

@ -839,10 +839,11 @@ class Database extends AbstractData
* From: https://stackoverflow.com/questions/36200534/pdo-oci-into-a-clob-field * From: https://stackoverflow.com/questions/36200534/pdo-oci-into-a-clob-field
* *
* @access public * @access public
* @static
* @param int|string|resource $value * @param int|string|resource $value
* @return int|string * @return int|string
*/ */
public function _sanitizeClob($value) public static function _sanitizeClob($value)
{ {
if (is_resource($value)) { if (is_resource($value)) {
$value = stream_get_contents($value); $value = stream_get_contents($value);