php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #29414 Fatal error: Call to undefined function textdomain()
Submitted: 2004-07-27 21:40 UTC Modified: 2004-07-30 00:28 UTC
Votes:2
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:1 (50.0%)
From: f dot braem at skynet dot be Assigned:
Status: Closed Package: Gettext related
PHP Version: 5.0.0 OS: Win98
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: f dot braem at skynet dot be
New email:
PHP Version: OS:

 

 [2004-07-27 21:40 UTC] f dot braem at skynet dot be
Description:
------------
Although php_gettext.dll is loaded a fatal error occurs when using the function textdomain:

Fatal error: Call to undefined function textdomain()


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-07-29 10:35 UTC] tony2001@php.net
Why do you think, that php_gettext.dll is loaded?
What does get_extension_funcs('gettext'); say?

 [2004-07-29 19:59 UTC] f dot braem at skynet dot be
I've used the following script:

<?php
echo '<pre>';
print_r(get_loaded_extensions());
echo '</pre>';
echo '<br />------------------<br />';
echo '<pre>';
print_r(get_extension_funcs('gettext'));
echo '</pre>';
?>

This is the result of the script:

Array
(
    [0] => bcmath
    [1] => calendar
    [2] => com_dotnet
    [3] => ctype
    [4] => ftp
    [5] => iconv
    [6] => libxml
    [7] => odbc
    [8] => pcre
    [9] => session
    [10] => SPL
    [11] => SQLite
    [12] => standard
    [13] => tokenizer
    [14] => zlib
    [15] => dom
    [16] => SimpleXML
    [17] => wddx
    [18] => xml
    [19] => apache2handler
    [20] => gd
    [21] => gettext
    [22] => ming
    [23] => mssql
    [24] => mysql
    [25] => openssl
    [26] => pdf
    [27] => xsl
    [28] => zip
    [29] => Zend Optimizer
)

------------------


Array
(
    [0] => libintl_textdomain
    [1] => libintl_gettext
    [2] => _
    [3] => libintl_dgettext
    [4] => libintl_dcgettext
    [5] => libintl_bindtextdomain
    [6] => libintl_ngettext
    [7] => libintl_dngettext
    [8] => libintl_bind_textdomain_codeset
)

It seems that there is something wrong with the names of functions.
 [2004-07-30 00:28 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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Mar 19 05:01:29 2024 UTC