ZF-11171: Zend_Translate_Adapter_Gettext fopens and doesn't fclose

Issue Type: Bug Created: 2011-03-14T07:44:00.000+0000 Last Updated: 2011-08-30T19:22:59.000+0000 Status: Resolved Fix version(s): - 1.11.6 (05/May/11)

Reporter: John Flatness (zerocrates) Assignee: Adam Lundrigan (adamlundrigan) Tags: - Zend_Translate

Related issues: Attachments:


In _loadTranslationData, Zend_Translate_Adapter_Gettext fopens the translation file and never fcloses it.

This can result in PHP holding a lot of open file handles for files that, as far as I can tell, have already been fully processed. Handles for any invalid files encountered during a scan are also held.

In particular, it seems like there should be fclose calls before both "is not a gettext file" exception throws and before the function returns.


Posted by Adam Lundrigan (adamlundrigan) on 2011-04-30T06:49:32.000+0000

Fixed in trunk r23903

Posted by Satoru Yoshida (satoruyoshida) on 2011-05-03T11:20:46.000+0000

Hello, Adam. I will push [solve] button as proxy for You. If You want to release at next mini, You can merge this commit fron trunk to 1.11 branch.


Posted by Thomas Weidner (thomas) on 2011-05-03T14:22:58.000+0000

Adam, thnx for your fix

Still reopening this issue

Please do actually not close I18n related issues as I18n is being reworked. This is intentionally


Posted by Satoru Yoshida (satoruyoshida) on 2011-05-03T15:05:07.000+0000

You can find in 1.11 branch at r23961

Posted by Ralph Schindler (ralph) on 2011-05-03T17:01:04.000+0000

Thomas, unless the commit doesn't look good, and you have valid issues with the work done, please don't reassign and reopen. Adam did acceptable work, it was reviewed and approved.

Posted by Thomas Weidner (thomas) on 2011-08-30T19:22:30.000+0000

@Ralph: As there was no response to my request regarding I18n components I integrated it within ZF2 with GH-277. If this is against your intention on how I have to handle issues for my components please state it and I will remove it again from ZF2.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.