PHP :: Bug #39685 :: iconv()
| Bug #39685 | iconv() - undefined function | ||||
|---|---|---|---|---|---|
| Submitted: | 2006-11-29 16:02 UTC | Modified: | 2009-10-21 10:20 UTC | ||
| From: | dinumarina at gmail dot com | Assigned: | bjori (profile) | ||
| Status: | Closed | Package: | ICONV related | ||
| PHP Version: | 5.2.0 | OS: | Slackware | ||
| Private report: | No | CVE-ID: | None | ||
[2006-11-29 16:02 UTC] 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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2006-11-29 16:03 UTC] dinumarina at gmail dot com
[2006-11-29 16:09 UTC] tony2001@php.net
[2006-11-29 16:20 UTC] dinumarina at gmail dot com
[2006-11-29 16:25 UTC] tony2001@php.net
[2006-11-29 16:29 UTC] dinumarina at gmail dot com
[2006-11-29 16:43 UTC] tony2001@php.net
[2006-11-29 16:50 UTC] dinumarina at gmail dot com
[2006-11-29 17:15 UTC] dinumarina at gmail dot com
[2006-11-29 17:24 UTC] dinumarina at gmail dot com
[2006-11-29 17:35 UTC] dinumarina at gmail dot com
[2006-11-29 17:56 UTC] tony2001@php.net
[2006-12-07 01:00 UTC] php-bugs at lists dot php dot net
[2006-12-20 10:39 UTC] bjori@php.net