ID: 50746
User updated by: werner at aloah-from-hell dot de
Reported By: werner at aloah-from-hell dot de
Status: Bogus
Bug Type: ICONV related
Operating System: Linux X86_64, Kernel 2.6.32.2
PHP Version: 5.2.12
New Comment:
Hi again,
I've switched back to PHP 5.2.11 on server2 (on which the iconv-call
did not work with PHP-CLI 5.2.12) and it's working:
server2:# php -n -d error_reporting=E_ALL -r 'echo iconv("utf-8",
"iso-8859-1","abcde"), PHP_EOL;'
abcde
server2:#
Compared to PHP-CLI 5.2.12:
server2:# php -n -d error_reporting=E_ALL -r 'echo iconv("utf-8",
"iso-8859-1","abcde"), PHP_EOL;'
Notice: iconv(): Unknown error (29) in Command line code on line 1
server2:#
So maybe this could be a PHP issue ?
Thanks,
Werner
strace php -n -d error_reporting=E_ALL -r 'echo iconv("utf-8", "iso-
8859-1","abcde"), PHP_EOL;'
Previous Comments:
------------------------------------------------------------------------
[2010-01-14 10:27:19] werner at aloah-from-hell dot de
Hi,
unfornately the are the same:
server2:# diff /usr/local/lib/php.ini /home/werner/php.ini
server2:#
Also the phpinfo-Output for iconv on both systems is identical:
server1:
iconv
iconv support => enabled
iconv implementation => glibc
iconv library version => 2.3.6
Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1+
server2:
iconv
iconv support => enabled
iconv implementation => glibc
iconv library version => 2.3.6
Directive => Local Value => Master Value
iconv.input_encoding => ISO-8859-1 => ISO-8859-1
iconv.internal_encoding => ISO-8859-1 => ISO-8859-1
iconv.output_encoding => ISO-8859-1 => ISO-8859-1
Bye,
Werner
------------------------------------------------------------------------
[2010-01-14 10:22:07] [email protected]
I'm quite sure they aren't totally identical. Most likely the one where
it doesn't work is not installed properly or someone has messed
something there. Anyway, since this sure isn't PHP bug -> bogus.
------------------------------------------------------------------------
[2010-01-14 10:18:26] werner at aloah-from-hell dot de
Hi,
the hardware-specs are the same - same for the PHP configuration. I'll
need more testing here ...
Anyway, thanks again.
Werner
------------------------------------------------------------------------
[2010-01-14 10:15:56] [email protected]
No idea since I do not know the specs of your servers. :)
Check the diff between their phpinfo() output on iconv section.
------------------------------------------------------------------------
[2010-01-14 10:13:21] werner at aloah-from-hell dot de
Hi,
thanks for the quick response. I did some more testing ... and it
seems like the problem is not related to PHP.
On one machine with PHP 5.2.12 installed:
server1:# php -n -d error_reporting=E_ALL -r 'echo iconv("utf-8",
"iso-8859-1","abcde"), PHP_EOL;'
abcde
server1:#
server2:# php -n -d error_reporting=E_ALL -r 'echo iconv("utf-8",
"iso-8859-1","abcde"), PHP_EOL;'
Notice: iconv(): Unknown error (29) in Command line code on line 1
server2:#
The configure-Options for PHP are the same on both machines. Any
Ideas?
regards,
Werner
------------------------------------------------------------------------
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/50746
--
Edit this bug report at http://bugs.php.net/?id=50746&edit=1