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, 

as requested: I've installed the latest Snapshot 
(http://snaps.php.net/php5.2-latest.tar.gz). Same result with this 
version: 

server2:/usr/src/php5.2-201001140930# 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:/usr/src/php5.2-20100114093#

Werner


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

[2010-01-14 10:56:51] werner at aloah-from-hell dot de

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;'

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

[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] j...@php.net

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] j...@php.net

No idea since I do not know the specs of your servers. :)
Check the diff between their phpinfo() output on iconv section.

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

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

Reply via email to