From:             tv at solnet dot ch
Operating system: Freebsd 4.10
PHP version:      4.3.8
PHP Bug Type:     Gettext related
Bug description:  Fatal error: Call to undefined function: bind_textdomain_codeset()

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 bug report at http://bugs.php.net/?id=29407&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29407&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29407&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29407&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29407&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29407&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29407&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29407&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29407&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29407&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29407&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29407&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29407&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29407&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29407&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29407&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29407&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29407&r=float

Reply via email to