Issues

ZF-6812: Zend_Paginator unserialize makes UTF-8 chars broken

Description

Based on http://framework.zend.com/issues/browse/ZF-6352 it seems that there is a problem while unserializing the object.

 
$paginatorObject = serialize($paginatorObject );    
$paginatorObject = unserialize($paginatorObject );

//broken UTF-8
foreach ($paginatorObject as $result) {
    var_dump($result);
}
 
//itareate to preserve UTF-8
foreach ($paginatorObject as $result) {
}   

$paginatorObject = serialize($paginatorObject );    
$paginatorObject = unserialize($paginatorObject );

//working UTF-8
foreach ($paginatorObject as $result) {
    var_dump($result);
}

Thanks to TT

Comments

If this is a ZF issue, it's probably an issue for Zend_Db. However, I wouldn't be surprised if this actually turns out to be an issue for PHP itself. Closing this for Zend_Paginator. Zend_Paginator only consumes DB queries and does not store them directly.