php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #8259 LC_MESSAGES not defined
Submitted: 2000-12-14 10:57 UTC Modified: 2001-04-27 18:55 UTC
From: fang-pin dot chang at cyberdude dot com Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.0 Latest CVS (14/12/2000) OS: MacOS X Public Beta
Private report: No CVE-ID: None
 [2000-12-14 10:57 UTC] fang-pin dot chang at cyberdude dot com
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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-14 11:05 UTC] sas@php.net
#8260
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 19:01:29 2024 UTC