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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: flconseil at yahoo dot fr
New email:
PHP Version: OS:

 

 [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

Pull Requests

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: Sat Dec 21 17:01:58 2024 UTC