ID: 29407
User updated by: tv at solnet dot ch
Reported By: tv at solnet dot ch
Status: Open
Bug Type: Gettext related
Operating System: Freebsd 4.10
PHP Version: 4.3.8
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[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