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
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: 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

Pull Requests

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-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 20:00:02 2026 UTC