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.
Çalışma Anı Yapılandırması
Bu işlevlerin davranışı php.ini içindeki ayarlardan etkilenir.
| İsim | Öntanımlı | Değişlik Yeri | Sürüm Bilgisi |
|---|---|---|---|
| iconv.input_encoding | "ISO-8859-1" | PHP_INI_ALL | PHP 4.0.5'ten beri kullanılabilmektedir. |
| iconv.output_encoding | "ISO-8859-1" | PHP_INI_ALL | PHP 4.0.5'ten beri kullanılabilmektedir. |
| iconv.internal_encoding | "ISO-8859-1" | PHP_INI_ALL | PHP 4.0.5'ten beri kullanılabilmektedir. |
Yapılandırma yönergelerinin kısa açıklamalarını aşağıda bulabilirsiniz.
Uyarı
Bazı sistemler (IBM AIX gibi) "ISO-8859-1" yerine "ISO8859-1" kullanırlar. Dolayısıyla yapılandırma seçeneklerinde ve işlev değiştirgelerinde bu değerin kullanılması gerekir.
Justin ¶
4 years ago
