#36935 [Asn->Csd]: dcngettext() function not defined/ '_' function defined

From: Date: Sun, 09 Apr 2006 23:15:13 +0000
Subject: #36935 [Asn->Csd]: dcngettext() function not defined/ '_' function defined
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-95508@lists.php.net to get a copy of this message
ID: 36935 Updated by: edink@php.net Reported By: flconseil at yahoo dot fr -Status: Assigned +Status: Closed Bug Type: Gettext related Operating System: Windows XP PHP Version: 5.1.2 Assigned To: edink New Comment: This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. Yes, that define was missing. Previous Comments: ------------------------------------------------------------------------ [2006-04-01 20:01:27] tony2001@php.net Edin, could you plz check if the underlying library function exists in libintl.lib ? If yes, we're missing -DHAVE_DCNGETTEXT=1 in ext/gettext/config.w32. ------------------------------------------------------------------------ [2006-03-31 16:52:17] flconseil at yahoo dot fr Description: ------------ After loading php_gettext.dll, the dcngettext() function is not defined. I don't know if it is related but gettext defines a '_' (underscore) function, which seems to accept only one argument, but I don't know what this function does. I don't know if it is specific to Windows as I haven't tried it on another system. Reproduce code: --------------- dl('php_gettext.dll'); $ext=new ReflectionExtension('gettext'); foreach ($ext->getFunctions() as $func) echo $func->getName()."\n"; You can also try '_('foo');' which doesn't seem to do anything. Expected result: ---------------- textdomain gettext dcngettext dgettext dcgettext bindtextdomain ngettext dngettext bind_textdomain_codeset Actual result: -------------- textdomain gettext _ dgettext dcgettext bindtextdomain ngettext dngettext bind_textdomain_codeset ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36935&edit=1

« previous php.bugs (#95508) next »