ID: 31324 User updated by: phpbug at tore dot cc Reported By: phpbug at tore dot cc -Status: Feedback +Status: Open Bug Type: Strings related Operating System: Solaris 10 PHP Version: 5.0.2 New Comment:
I have traced down the trouble. When multibyte strings support is complied in to php the internal function 'strlen' is aliased to the function 'mb_strlen'. mb_strlen counts the number of characters in the binary string depending of what default encoding is used. I have set the default chars to UTF-8 and SJIS (japanese) on my sparc machine. That is why I only see it there. Please remove the aliasing between strlen and mb_strlen! Previous Comments: ------------------------------------------------------------------------ [2004-12-30 10:55:57] [EMAIL PROTECTED] It's impossible to extract that code from PHP, and as we don't have access to a solaris machine we can not really debug this. ------------------------------------------------------------------------ [2004-12-29 23:22:50] phpbug at tore dot cc Are 64bit processors not supported by php? Which machine architecture is 'my system'? The php is compiled with gcc2 AND gcc3. With solaris 9 AND solaris 10. The same trouble occurs. So I need to have the code for 'strlen' in php extracted before I can figure out where the source for the trouble is. A simple C-program using string.h's strlen cause no troule at all. ------------------------------------------------------------------------ [2004-12-29 21:42:53] [EMAIL PROTECTED] Sounds like either a compiler or libc bug. I cannot replicate this on my systems either. ------------------------------------------------------------------------ [2004-12-29 19:13:28] phpbug at tore dot cc I might add that I tried php-5.0.3 on an intel-based solaris 10 machine and there were no problems with the strlen. ------------------------------------------------------------------------ [2004-12-29 07:34:41] phpbug at tore dot cc I have used gcc2 and gcc3 to compile. The machine is a sparc. The problem occurs on solaris 9 and solaris 10. If you suspect that this is a solaris problem, can you extract the code for 'strlen' in php. I could make some tests in C.... ------------------------------------------------------------------------ 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/31324 -- Edit this bug report at http://bugs.php.net/?id=31324&edit=1