Doc #68757 [Asn->Csd]: type of mysqli::$connect_errno is wrong

From: Date: Tue, 06 Jan 2015 11:21:00 +0000
Subject: Doc #68757 [Asn->Csd]: type of mysqli::$connect_errno is wrong
References: 1  Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-11831@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=68757&edit=1 ID: 68757 Updated by: irker@php.net Reported by: tetsu dot mitarai at gmail dot com Summary: type of mysqli::$connect_errno is wrong -Status: Assigned +Status: Closed Type: Documentation Problem Package: Documentation problem Operating System: any PHP Version: 5.6.4 Assigned To: irker Block user comment: N Private report: N New Comment: 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. Previous Comments: ------------------------------------------------------------------------ [2015-01-06 11:19:47] 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 10:35:08] 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) ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=68757&edit=1

« previous php.doc.bugs (#11831) next »