symfony/symfony — Issue #2469: PdoSessionStorage out-of-place "query()" call yields RuntimeException(PDOException)
Author: drm
Created: 2011-10-25 13:36:37+00:00
State: open

https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/SessionStorage/PdoSessionStorage.php#L146

This query call is superfluous, since the query is prepared and executed right after. Probably a refactoring left-over.

This causes a PDOException if ATTR_ERRMODE is set to ERRMODE_EXCEPTION on the Pdo backend.