#29831 [NEW]: bindtextdomain

From: Date: Wed, 25 Aug 2004 07:58:58 +0000
Subject: #29831 [NEW]: bindtextdomain
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-65218@lists.php.net to get a copy of this message
From: tedf at ndrw dot co dot uk Operating system: Windows NT PHP version: 4.3.8 PHP Bug Type: *Configuration Issues Bug description: bindtextdomain Description: ------------ It seems that this function requires the gettext module, I assume this is php-gettext.dll this is not shipped with 4.3.8. My test code work OK on Linux fails on Windows. Any suggestions? I am using 4.3.8 becasue it is the same version as My ISP is using. There is fix in bug report #18693 but the download link is bad Reproduce code: --------------- <?php // Set language to German setlocale(LC_ALL, 'de_DE'); // Specify location of translation tables bindtextdomain("myPHPApp", "./locale"); // Choose domain textdomain("myPHPApp"); // Translation is looking for in ./locale/de_DE/LC_MESSAGES/myPHPApp.mo now // Print a test message echo gettext("Welcome to My PHP Application"); // Or use the alias _() for gettext() echo _("Have a nice day"); ?> Expected result: ---------------- Dsiplay some text Actual result: -------------- Fatal error: Call to undefined function: bindtextdomain() in F:\Inetpub\wwwroot\test\bind.php on line 6 -- Edit bug report at http://bugs.php.net/?id=29831&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=29831&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=29831&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=29831&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=29831&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=29831&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=29831&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=29831&r=needscript Try newer version: http://bugs.php.net/fix.php?id=29831&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=29831&r=support Expected behavior: http://bugs.php.net/fix.php?id=29831&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=29831&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=29831&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=29831&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29831&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=29831&r=dst IIS Stability: http://bugs.php.net/fix.php?id=29831&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=29831&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=29831&r=float

« previous php.bugs (#65218) next »