php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #11453 textdomain() requires parameter
Submitted: 2001-06-12 22:29 UTC Modified: 2001-06-13 11:49 UTC
From: peter at petermoulding dot com Assigned:
Status: Closed Package: Documentation problem
PHP Version: 4.0 Latest CVS (2001-06-12) OS: NT 4.0
Private report: No CVE-ID: None
 [2001-06-12 22:29 UTC] peter at petermoulding dot com
Release:
php4win.de: php-4.0.7-dev-20010611.exe
Documentation:
Call textdomain() with no parameters to get the current setting without changing it. 
Code:
print("<br>Text domain: " . textdomain());
Result:
Warning: Wrong parameter count for textdomain()

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-13 11:49 UTC] sniper@php.net
The documentation is wrong. You need to use this:

textdomain(NULL);

Fixed in CVS of the documentation.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Apr 26 19:01:29 2024 UTC