php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #26529 mysql_client_encoding - Wrong return type
Submitted: 2003-12-05 00:37 UTC Modified: 2003-12-05 04:16 UTC
From: phpbug at chipple dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2003-12-05 00:37 UTC] phpbug at chipple dot net
Description:
------------
The documentation says that the return type for mysql_client_encoding is "int" while it should say "string".

http://www.php.net/manual/en/function.mysql-client-encoding.php

Expected result:
----------------
string mysql_client_encoding ( [resource link_identifier])


Actual result:
--------------
int mysql_client_encoding ( [resource link_identifier])

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-05 04:16 UTC] didou@php.net
This bug has been fixed in CVS.

In case this was a PHP problem, 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/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.
 [2020-02-07 06:12 UTC] phpdocbot@php.net
Automatic comment on behalf of didou
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=3b340cdfe7d8e93d4b6cb50f9a537f1b7522c272
Log: fix #26529
 [2020-12-30 12:50 UTC] nikic@php.net
Automatic comment on behalf of didou
Revision: http://git.php.net/?p=doc/fr.git;a=commit;h=cf8300187e27767d849b7afcefb83af8c09bc659
Log: fix #26529
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 12:00:02 2025 UTC