php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2958 setlocale setting is preserved across invocations (from #2949)
Submitted: 1999-12-11 08:30 UTC Modified: 2000-04-28 17:23 UTC
From: php-bug at vogtner dot de Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Beta 3 OS: UNIX
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: php-bug at vogtner dot de
New email:
PHP Version: OS:

 

 [1999-12-11 08:30 UTC] php-bug at vogtner dot de
Assume two files. First be a.php3:

<%
  setlocale ('LC_ALL', "de_DE"); // dec. sep = ,
  $z = 3.4;
  echo $z;
%>

and second b.php3:

<%
  $z = 3.4;
  echo $z;
%>

After invocation of a.php3 the locale state is preserved
within the apache process. If the invocation of b.php3
is processed by this apache process, b.php3 yields
3,4 instead of 3.4. 

"hotfix": ensure that after each invocation of the
PHP engine the locale setting is re-set by calling
setlocale (LC_ALL, "C") or setlocale (LC_ALL, "POSIX") or
what ever is the default on the OS/machine at apache
startup.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-28 17:23 UTC] thies at cvs dot php dot net
fixed in CVS
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Mon Jul 06 02:00:01 2026 UTC