PHP 5 and gettext() annoyances
Mar. 12th, 2007 12:50 pmI just learned the hard way that if you call the gettext() on an installation that does not have it compiled in, PHP just exits. No errors, no warnings, nothing. The script just stops. And yes, error_reporting(E_ALL) is enabled.
What an annoyance.
What an annoyance.
(no subject)
Date: 2007-03-13 02:00 am (UTC)(no subject)
Date: 2007-03-14 02:31 am (UTC)You can use the GD Image functions for that...
(no subject)
Date: 2007-03-13 02:40 am (UTC)(no subject)
Date: 2007-03-13 02:42 am (UTC)Neither. I was too @%#! busy fixing the production site which was in a broken state.
(no subject)
Date: 2007-03-13 05:14 am (UTC)(no subject)
Date: 2007-03-19 11:34 pm (UTC)Did you know that gettext just plain doesn't translate anything at all if a locale with a name matching exactly the currently set LANG doesn't exist on the server? Even though gettext does NOT use that locale for anything?
Did you know that installing some of those locales breaks PHP, plain and simply, with very confusing and entirely unrelated error messages?
(And yes, one of our clients is in a country whose LANG matches one of those locales that break PHP. I love my job so much. ;))