ID:               35288
 User updated by:  webmaster at negeta dot com
 Reported By:      webmaster at negeta dot com
-Status:           Feedback
+Status:           Open
 Bug Type:         ICONV related
 Operating System: FreeBSD 5.4
 PHP Version:      5.1.0RC6
 New Comment:

I found how this problem occurs on my env.

0. C function "iconv" is exist, and "libiconv" is not.
1. configure detects "#define HAVE_ICONV 1"
  and HAVE_LIBICONV is not defined.
2. "#define iconv libiconv" in /usr/local/include/iconv.h line 80.
3. "#undef iconv" is not execute in ext/iconv/iconv.c line 55.
4. `libiconv' links to php_if_iconv in ext/iconv/iconv.c line 68. PHP
function "libiconv" is created.


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

[2005-11-19 14:28:02] [EMAIL PROTECTED]

Can't reproduce.
# ./sapi/cli/php -r 'iconv();'

Warning: iconv() expects exactly 3 parameters, 0 given in Command line
code on line 1
# uname -r
5.4-STABLE

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

[2005-11-19 14:07:12] webmaster at negeta dot com

I installed iconv from /usr/ports/converters/libiconv.
iconv.h is found in /usr/local/include.
I can find "#define iconv libiconv" in it.

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

[2005-11-19 12:17:00] [EMAIL PROTECTED]

Where is iconv.h in your system?
I'm unable to reproduce it on FreeBSD and it's definitely NOT
reproducible on other systems, do a short investigation yourself,
please and provide some info about it.

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

[2005-11-19 05:16:17] webmaster at negeta dot com

Description:
------------
On FreeBSD, the function "iconv" is exist as "libiconv."
http://www.php.net/manual/en/function.iconv.php#47428

And it causes "Call to undefined function" error
when "make test."
http://marc.theaimsgroup.com/?l=php-qa&m=113219318201772&w=2

Please include a wrapper (wraps above difference)
to test scripts.



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


-- 
Edit this bug report at http://bugs.php.net/?id=35288&edit=1

Reply via email to