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
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: peter at petermoulding dot com
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 01:01:30 2025 UTC