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 16: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)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 50 - 21 = ?

 
 [2012-05-14 16: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..

Comments