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

Bug #19419 Infinite loop when saving MO files
Submitted: 2012-05-14 11:02 UTC
From: lambik Assigned:
Status: Open Package: File_Gettext (version 0.4.2)
PHP Version: 5.3.10 OS: Windows Vista
Roadmaps: (Not assigned)    

 [2012-05-14 11:02 UTC] lambik (Tom Mmmmmm)
Description: ------------ Sometimes when I want to translate a PO file to a MO file, the code is stuck in an infinite loop. I cannot always reproduce this, only with some language files. Using "echo" debugging I concluded that at line 401 in MO.php: $incr = 1 + ($hash_val % ($hash_tab_size - 2)); This value is zero sometimes! Then I get an infinite loop in the do-while loop below..