![]() |
sponsored links |
|
|
sponsored links
|
|
1
28th May 01:31
External User
Posts: 1
|
ID: 36935
Updated by: tony2001@php.net Reported By: flconseil at yahoo dot fr -Status: Open +Status: Assigned Bug Type: Gettext related Operating System: Windows XP PHP Version: 5.1.2 -Assigned To: +Assigned To: edink New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [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 |
|
|