Hi, thanks for the report. I've committed a fix similar to what was proposed on a bug on SF. It's in r60 of lp:php-gettext, and depending on how much you need it in a release, I can roll one out later today.
To fix encoding stuff properly, it'd probably take a bit more effort. However, proposed patch on SF was just passing the text through, so I did that in my version as well. I didn't want to define such stubs since that might conflict with something else expecting those functions (and php-gettext is a library and is commonly combined with other code).
Thus, I just wrapped the call with function_exists stuff.
Let me know how it works.
Also, can you please check if "ini_get('mbstring.internal_encoding')" returns anything when PHP is compiled with no mbstring support? (this is used in _get_codeset() when PO/MO file has no charset defined).
Hi, thanks for the report. I've committed a fix similar to what was proposed on a bug on SF. It's in r60 of lp:php-gettext, and depending on how much you need it in a release, I can roll one out later today.
To fix encoding stuff properly, it'd probably take a bit more effort. However, proposed patch on SF was just passing the text through, so I did that in my version as well. I didn't want to define such stubs since that might conflict with something else expecting those functions (and php-gettext is a library and is commonly combined with other code).
Thus, I just wrapped the call with function_exists stuff.
Let me know how it works.
Also, can you please check if "ini_get( 'mbstring. internal_ encoding' )" returns anything when PHP is compiled with no mbstring support? (this is used in _get_codeset() when PO/MO file has no charset defined).