It sounds like Zend\Paginator is caching parts of the adapter itself
(the PDOStatement resource object) -> That can't work.

Please send the full stacktrace of the exceptions including previous
exceptions.

Greetings
Marc

On 09.12.2012 13:04, Ralf Eggert wrote:
> Hi,
> 
> I am just trying to use the DbSelect adapter with Zend\Paginator which
> works as expected. But when I want to add Zend\Cache to the mix, I get
> some problems.
> 
> When I add the serializer plugin I get this error:
> 
>    You cannot serialize or unserialize PDOStatement instances
True, you can't do that ;)

> 
> When I remove the serializer plugin I get this error:
> 
>    Error writing file
> 
> The cache dir is writable but since it is tried to write a PDOStatement
> to the cache this seems to be impossible.
I think it's because not string data given to fwrite/file_put_contents.

> 
> Is this a bug or am I misunderstanding anything?
Sounds like a bug of Zend\Paginator

> 
> Regards,
> 
> Ralf
> 

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to