Bug #67423 [NEW]: ngettext() returns po file headers when first param is an empty string
| From: | phil at propcom dot co dot uk | Date: | Wed, 11 Jun 2014 21:16:09 +0000 |
| Subject: | Bug #67423 [NEW]: ngettext() returns po file headers when first param is an empty string | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-186155@lists.php.net to get a copy of this message | ||
From: phil at propcom dot co dot uk
Operating system: Centos
PHP version: 5.4.29
Package: Gettext related
Bug Type: Bug
Bug description:ngettext() returns po file headers when first param is an empty string
Description:
------------
When ngettext is called with an empty string as the first parameter, it
returns the unparsed headers from the PO (or indeed MO) file.
Test script:
---------------
https://gist.github.com/phil-lavin/ac3e3c20fd0e902f6f88
Expected result:
----------------
1 Produkt
<no output>
Actual result:
--------------
As per Gist
--
Edit bug report at https://bugs.php.net/bug.php?id=67423&edit=1
--