php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15800 german characters cannot be stored
Submitted: 2002-02-28 19:25 UTC Modified: 2002-08-08 10:47 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: thomas dot rauh at feig-partner dot de Assigned:
Status: Not a bug Package: WDDX related
PHP Version: 4.1.1 OS: Win2000
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: thomas dot rauh at feig-partner dot de
New email:
PHP Version: OS:

 

 [2002-02-28 19:25 UTC] thomas dot rauh at feig-partner dot de
Summary:
german characters cannot be stored
by wddx_serialize_vars

To make it easier for you to reproduce
the bug i write a little step-by-step
summary:

1) Setting the correct local zone
setlocale("LC_ALL","german");

2) Writing some test-data with german characters
??????

3) Pushing the test-data into wddx_serialize_vars
on a Win2000 Server. Results on Win2000:
?<char code='FFFFFFD6'/>??<char code='FFFFFFF6'/><char code='FFFFFFFC'/>

Results on Linux (correct values):
??????

4) Reading the values back (from the saved wddx package)
? ??  

It seams like that only some locale characters (???) are recognized on an Win2000 Server. With the same script
and the same data, there are no problems on an Linux
Server.

Happy Debugging :-)
Thomas

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-20 18:10 UTC] bs_php at infeer dot com
Using PHP 4.1.2 and can confirme the error.
It's very inconsisten!
At first I wasn't using setlocale() and all seamed fine. But after I called setlocale() the wddx serialize failed all the time!

Multiple calls of setlocale() produce 2 different results that alternate. After every Apache restart the results changes sort of randomly! If setlocale() is commented out, the the last result remains (even after apache is restarted). 

It seams as if setlocale() is writting something wrong to the apache conf. 

Don't know if a reboot would help, but if not my wddx serializetion would stay broken :( 

I recommend not to us it!!!


Following code was used to test :
<?php
  setlocale(LC_ALL,"german"); 
  $in = "??????";
  $ser = wddx_serialize_value($in);
  $des = wddx_deserialize($ser);
  echo "<pre>";
  echo htmlspecialchars($ser) . "\n";
  var_dump($des);
  echo "</pre>";
?>
 [2002-04-21 05:00 UTC] bs_php at infeer dot com
Reboot did not solve the problem!
 [2002-04-21 06:19 UTC] bs_php at infeer dot com
See bug #16718 
http://bugs.php.net/bug.php?id=16718
 [2002-08-08 10:47 UTC] kalowsky@php.net
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Nov 24 02:01:28 2024 UTC