php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36935 dcngettext() function not defined/ '_' function defined
Submitted: 2006-03-31 16:52 UTC Modified: 2006-04-09 23:15 UTC
From: flconseil at yahoo dot fr Assigned: edink (profile)
Status: Closed Package: Gettext related
PHP Version: 5.1.2 OS: Windows XP
Private report: No CVE-ID: None
 [2006-03-31 16:52 UTC] 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


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-01 20:01 UTC] 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-04-09 23:15 UTC] edink@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 09:01:30 2024 UTC