ID: 29407 Updated by: [EMAIL PROTECTED] Reported By: tv at solnet dot ch Status: Closed Bug Type: Gettext related Operating System: Freebsd 4.10 PHP Version: 4.3.8 New Comment:
And FWIW, from gettext.c source: #if HAVE_BIND_TEXTDOMAIN_CODESET PHP_NAMED_FE(bind_textdomain_codeset, zif_bind_textdomain_codeset, NULL) #endif Previous Comments: ------------------------------------------------------------------------ [2004-07-27 21:37:56] tv at solnet dot ch It looks like a freebsd port issue only. It doesn't find the /usr/local/lib/libintl.so during the configure of php4-gettext. setenv LDFLAGS -L/usr/local/lib and recompiling of the php4-gettext port can fix this problem (tested on a 5.2.1 machine) Many thanks to Torsten Schneider. ------------------------------------------------------------------------ [2004-07-27 21:17:48] tv at solnet dot ch I use gettext 0.13 with the system. The same configuration with php 4.3.7 works fine. But with 4.3.8 this specified bind_textdomain_codeset() function does not work anymore. ------------------------------------------------------------------------ [2004-07-27 15:47:47] tv at solnet dot ch Description: ------------ Fatal error: Call to undefined function: bind_textdomain_codeset() even if you have gettext enabled in php4. phpinfo() shows gettext enabled. Gettext is also isntalled in the code Reproduce code: --------------- <?php // Localisation $lclang = $LANG; if( $LANG == "de" ) $lclang = "C"; setlocale( LC_ALL, "" ); putenv( "LANG=$lclang" ); putenv( "LANGUAGE=$lclang" ); bind_textdomain_codeset( "solnetweb", "ISO8859-1" ); bindtextdomain( "solnetweb", $_SERVER["DOCUMENT_ROOT"] . "/translations" ); textdomain( "solnetweb" ); // Remove used variables. unset( $lclang, $setlang ); ?> Actual result: -------------- Fatal error: Call to undefined function: bind_textdomain_codeset() ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=29407&edit=1