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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: fang-pin dot chang at cyberdude dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-12-14 11:05 UTC] sas@php.net
#8260
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed May 07 08:01:27 2025 UTC