ID:               41775
 Updated by:       [EMAIL PROTECTED]
 Reported By:      rozvinbm_jp at yahoo dot co dot jp
-Status:           Open
+Status:           Bogus
 Bug Type:         Date/time related
 Operating System: Windows XP
 PHP Version:      5.2.3
 New Comment:

Yes, I got it - and this is not a bug in PHP. The first japanese
character (for year) in its Shift-Jis encoding (that's the encoding you
were using in the script that you sent me) includes as second byte the
"n" character. The "n" character is also a modifier letter for the
date() function call. As PHP 4 and PHP 5 do not support Unicode here
this does not work. There are two solutions:
1. Encode your scripts in UTF-8
2. break up the date call like:
   echo date("Y", $ts) . "YEARCHAR" . date("m", $ts) . "MONTHCHAR"....


Previous Comments:
------------------------------------------------------------------------

[2007-06-25 08:36:18] rozvinbm_jp at yahoo dot co dot jp

I sent you the php file contaning the actual reproduce code for your
reference via email. Please acknowledge it if you received or not.

------------------------------------------------------------------------

[2007-06-22 09:30:31] [EMAIL PROTECTED]

Could you send it to me directly (in a zip/targz file)? I can't test it
as I can't write Chinese myself :) (address is derick (@) php . net)

------------------------------------------------------------------------

[2007-06-22 09:28:15] rozvinbm_jp at yahoo dot co dot jp

http://anime.geocities.jp/rozvinbm_jp/reproducecode.JPG

I'm sorry for correction (must be all capital JPG). This is the link.
Thanks.

------------------------------------------------------------------------

[2007-06-22 09:20:25] rozvinbm_jp at yahoo dot co dot jp

http://anime.geocities.jp/rozvinbm_jp/reproducecode.jpg

This is the revised reproducecode.jpg. I do with jpg file because maybe
this forum does not support chinese character to display.

------------------------------------------------------------------------

[2007-06-22 08:11:33] [EMAIL PROTECTED]

Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves. 

A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external 
resources such as databases, etc. If the script requires a 
database to demonstrate the issue, please make sure it creates 
all necessary tables, stored procedures etc.

Please avoid embedding huge scripts into the report.

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/41775

-- 
Edit this bug report at http://bugs.php.net/?id=41775&edit=1

Reply via email to