fixed error on oracle db related to clob data.

https://github.com/symfony/symfony/issues/3255
This commit is contained in:
mauricio lopez 2012-07-26 11:42:25 -05:00
parent 55faa5468b
commit 9e285937b9

View File

@ -181,7 +181,8 @@ class PdoSessionStorage extends NativeSessionStorage
$sessionRows = $stmt->fetchAll(\PDO::FETCH_NUM);
if (count($sessionRows) == 1) {
return base64_decode($sessionRows[0][0]);
$session = is_resource($sessionRows[0][0]) ? stream_get_contents($sessionRows[0][0]) : $sessionRows[0][0];
return base64_decode($session);
}
// session does not exist, create it