#39685 [Opn]: iconv() - undefined function
| From: | dinumarina at gmail dot com | Date: | Wed, 29 Nov 2006 16:03:44 +0000 |
| Subject: | #39685 [Opn]: iconv() - undefined function | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-105643@lists.php.net to get a copy of this message | ||
ID: 39685
User updated by: dinumarina at gmail dot com
Reported By: dinumarina at gmail dot com
Status: Open
Bug Type: *Unicode Issues
Operating System: Slackware
PHP Version: 5.2.0
New Comment:
Don't mind the type on the 1st description line - it's php 5.2.0 not
5.0.2 :)
Previous Comments:
------------------------------------------------------------------------
[2006-11-29 16:02:27] dinumarina at gmail dot com
Description:
------------
I'm using PHP 5.0.2 compiled from source. Configure command:
'./configure' '--prefix=/usr' '--disable-static'
'--with-apxs=/usr/local/apache/bin/apxs' '--sysconfdir=/etc'
'--enable-discard-path' '--with-config-file-path=/etc/apache'
'--with-openssl' '--enable-bcmath' '--with-bz2' '--with-pic'
'--enable-calendar' '--enable-ctype' '--with-gdbm'
'--with-imap-ssl=/tmp/pine4.58/imap/c-client'
'--with-imap=/tmp/pine4.58/imap/c-client' '--enable-dbase'
'--enable-ftp' '--with-iconv' '--with-exif' '--with-gd'
'--enable-gd-native-ttf' '--with-jpeg-dir=/usr' '--with-png'
'--with-gmp' '--with-xml=shared,/usr' '--with-gettext=shared,/usr'
'--enable-trans-sid' '--enable-shmop' '--enable-sockets'
'--with-regex=php' '--enable-sysvsem' '--enable-sysvshm'
'--enable-yp'
'--enable-memory-limit' '--with-tsrm-pthreads' '--enable-shared'
'--disable-debug' '--with-zlib=/usr' '--with-kerberos'
'--with-mysql'
The iconv appears functional in php -i and phpinfo():
iconv support enabled
iconv implementation glibc
iconv library version 2.3.2
But php seems to miss on the function iconv(), although it finds the
function iconv_substr. I saw this bug was addressed in php 5.0.x, but
now it seems to strike back again and I didn't find a report for 5.2.
Reproduce code:
---------------
<?php
iconv_substr();
iconv();
?>
Expected result:
----------------
Warning: iconv_substr() expects at least 2 parameters, 0 given in
/home/belvedai/public_html/test/iconv.php on line 2
Warning: iconv() expects at least 3 parameters, 0 given in
/home/belvedai/public_html/test/iconv.php on line 3
Actual result:
--------------
Warning: iconv_substr() expects at least 2 parameters, 0 given in
/home/belvedai/public_html/test/iconv.php on line 2
Fatal error: Call to undefined function iconv() in
/home/belvedai/public_html/test/iconv.php on line 3
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39685&edit=1