#39685 [NEW]: iconv() - undefined function
| From: | dinumarina at gmail dot com | Date: | Wed, 29 Nov 2006 16:02:27 +0000 |
| Subject: | #39685 [NEW]: iconv() - undefined function | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-105642@lists.php.net to get a copy of this message | ||
From: dinumarina at gmail dot com
Operating system: Slackware
PHP version: 5.2.0
PHP Bug Type: *Unicode Issues
Bug description: iconv() - undefined function
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 bug report at http://bugs.php.net/?id=39685&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=39685&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=39685&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=39685&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=39685&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=39685&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=39685&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=39685&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=39685&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=39685&r=support
Expected behavior: http://bugs.php.net/fix.php?id=39685&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=39685&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=39685&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=39685&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=39685&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=39685&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=39685&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=39685&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=39685&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=39685&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=39685&r=mysqlcfg