Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.5.1

Bug #13342 getLinks() return the wrong result.
Submitted: 2008-03-08 07:10 UTC
From: sunaoka Assigned: quipo
Status: Closed Package: Pager (version 2.4.5)
PHP Version: 5.2.5 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2008-03-08 07:10 UTC] sunaoka (Norifumi Sunaoka)
Description: ------------ When a form value is an array and a multi byte, getLinks() return the wrong result. Test script: --------------- <?php require_once 'Pager/Pager.php'; // <input type="text" name="q[]" /> $_GET['q'][] = '漢字'; // in Japanese (UTF-8) $pager =& Pager::factory(array( 'mode' => 'sliding', 'totalItems' => 100 )); $links = $pager->getLinks(); echo $links['next'], "\n"; Expected result: ---------------- <a href="./test.php?q%5B0%5D=%E6%BC%A2%E5%AD%97&pageID=2" title="next page">»</a> Actual result: -------------- <a href="./test.php?q%5B0%5D=&aelig;&frac14;&cent;&aring;&shy;&pageID=2" title="next page">»</a>

Comments

 [2008-03-09 14:48 UTC] quipo (Lorenzo Alberton)
This bug has been fixed in CVS. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.