Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

[hotfix/ZF-11171] Zend_Translator_Adapter_Gettext #277

Closed

Conversation

thomasweidner
Copy link
Contributor

  • added fclose

- setting ALLOW_EMPTY should not ignore specific NotEmpty rules
@weierophinney
Copy link
Member

The logic in Zend\Translator\Adapter for iterating directories is broken. The $ignore option passed to RecursiveRegexIterator instantiated at line 269 should be a valid regex. However, it ends up being "//./u" on unix-based systems. You should likely use a different regex pattern delimiter ("#" is often a good choice when directory separators are used).

Currently, this causes the tests GettextTest::testOptionLocaleDirectory and GettextTest::testOptionLocaleFilename to fail. Please correct, and update this request when fixed.

Thanks!

@thomasweidner
Copy link
Contributor Author

Are you sure this problem is related to this patch? Here only @fclose has been added. The base adapter has not changed
The issue ZF2-43 which you are referring to will be addressed by another pull request

@weierophinney
Copy link
Member

Well, it's impossible to verify that the new functionality does not cause broken tests due to the failing regex. If you can fix that, too, I'd appreciate it.

@thomasweidner
Copy link
Contributor Author

You already have an pull request for ZF2-43 where this problem has been adressed. Just pull it :-)
Afterwards you should have no unittest problems anymore and can pull this one.

@weierophinney
Copy link
Member

Pulled following the PR for ZF2-43, and everything runs as expected -- thanks! Merged and pushed to master.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants