Many people report problems compiling PHP on Leopard due to a libiconv issue.
This may be due to the small C test programme in ./configure.
It calls open_conv with two const * char arguments (correct), but these are NOT valid charsets to iconv. This then breaks ./configure.
AFAIK from the libiconv documentation, the PHP configure call is incorrect: this function expects two valid charset arguments. (You can see a list of valid arguments by running iconv -l).
Changing the call to:
cd = open_conv("UTF-8","ISO-8859-1")
returns a valid iconv_t number (non-negative), and configure can then continue setting up for your Makefile compile.
실행시 설정
이 함수의 작동은 php.ini 설정에 영향을 받습니다.
| 이름 | 기본값 | 설정권한 | 변경점 |
|---|---|---|---|
| iconv.input_encoding | "ISO-8859-1" | PHP_INI_ALL | PHP 4.0.5부터 사용할 수 있습니다. |
| iconv.output_encoding | "ISO-8859-1" | PHP_INI_ALL | PHP 4.0.5부터 사용할 수 있습니다. |
| iconv.internal_encoding | "ISO-8859-1" | PHP_INI_ALL | PHP 4.0.5부터 사용할 수 있습니다. |
Warning
몇몇 시스템(IBM AIX 등)은 "ISO-8859-1" 대신에 "ISO8859-1"을 사용하기에, 이 값을 설정 옵션과 함수 인수로 사용합니다.
Note:
설정 옵션 iconv.input_encoding는 현재 사용되지 않습니다.
Justin
17-Mar-2009 09:56
