php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #68757 type of mysqli::$connect_errno is wrong
Submitted: 2015-01-06 10:35 UTC Modified: 2015-01-06 11:20 UTC
From: tetsu dot mitarai at gmail dot com Assigned: irker (profile)
Status: Closed Package: Documentation problem
PHP Version: 5.6.4 OS: any
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: tetsu dot mitarai at gmail dot com
New email:
PHP Version: OS:

 

 [2015-01-06 10:35 UTC] tetsu dot mitarai at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/mysqli.connect-errno
---
i tested mysqli->$connect_errno.

This is written in docs "string $mysqli->connect_errno;".
meaning return type is string.
however, method returned integer.

Test script:
---------------
<?
//Test code
$this->objMySQLi = new mysqli(
   'localhost',
   'admin_hoge',
   'password_hoge',
   'hugeDatabase'
);
var_dump($this->objMySQLi->connect_errno);
exit;
?>

Expected result:
----------------
Test code showed var dump of some integer.
ex: int(0)
ex: int(1045) 


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2015-01-06 11:17 UTC] irker@php.net
-Assigned To: +Assigned To: irker
 [2015-01-06 11:19 UTC] irker@php.net
Automatic comment from SVN on behalf of irker
Revision: http://svn.php.net/viewvc/?view=revision&amp;revision=335639
Log: Fix bug #68757
Wrong result type for mysqli::$connect_errno
 [2015-01-06 11:20 UTC] irker@php.net
-Status: Assigned +Status: Closed
 [2015-01-06 11:20 UTC] irker@php.net
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.

Thank you for the report, and for helping us make our documentation better.


 [2020-02-07 06:08 UTC] phpdocbot@php.net
Automatic comment on behalf of irker
Revision: http://git.php.net/?p=doc/en.git;a=commit;h=1e1c3f01a2486b1f02faeef8f237972031ada307
Log: Fix bug #68757 Wrong result type for mysqli::$connect_errno
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed May 29 10:01:32 2024 UTC