PHP 4.0 Bug #8260: LC_MESSAGES not defined
| From: | fang-pin dot chang at cyberdude dot com | Date: | Thu, 14 Dec 2000 16:03:06 +0000 |
| Subject: | PHP 4.0 Bug #8260: LC_MESSAGES not defined | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41381@lists.php.net to get a copy of this message | ||
From: fang-pin.chang@cyberdude.com
Operating system: MacOS X Public Beta
PHP version: 4.0 Latest CVS (14/12/2000)
PHP Bug Type: Compile Failure
Bug description: LC_MESSAGES not defined
Actually, I am trying to build php4-latest from
snaps.php.net as of php4-200012131745...
In ext/standard/string.c, line 63, inside function
register_string_constants(), the code that reads
#if !PHP_WIN32
REGISTER_LONG_CONSTANT("LC_MESSAGES",
LC_MESSAGES, CONST_CS | CONST_PERS
ISTENT);
# endif
should probably be changed to
#ifdef LC_MESSAGES
REGISTER_LONG_CONSTANT("LC_MESSAGES",
LC_MESSAGES, CONST_CS | CONST_PERS
ISTENT);
#endif
like what line 2381 of PHP_FUNCTION(setlocale) in the
same file does. For whatever reason, in MacOS X
Public Beta, LC_MESSAGES is not defined in locale.h.
--
Edit Bug report at: http://bugs.php.net/?id=8260&edit=1