Doc #55405 [NEW]: The documentation example for mysqli connect_errno says it's a function
| From: | pelle at pelleravn dot dk | Date: | Thu, 11 Aug 2011 18:53:44 +0000 |
| Subject: | Doc #55405 [NEW]: The documentation example for mysqli connect_errno says it's a function | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-6993@lists.php.net to get a copy of this message | ||
From:
Operating system: OS X 10.7
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:The documentation example for mysqli connect_errno says it's a function
Description:
------------
The documentation for: http://php.net/manual/en/mysqli.query.php
The example for how to make a query with MySQLi it have an example how to
connect
to MySQL as well, using MySQLi.
In the example it uses a method called "connect_errno()". But it's not a
method/function, it's a instance variable.
Test script:
---------------
if ($mysqli->connect_errno()) {
printf("Connect failed: %s\n", $mysqli->connect_error());
exit();
}
Expected result:
----------------
PHP should print out that "Connect failed" with an error description.
Actual result:
--------------
PHP gives a fatal error.
--
Edit bug report at https://bugs.php.net/bug.php?id=55405&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=55405&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=55405&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=55405&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=55405&r=fixed
Fixed in SVN and need be documented: https://bugs.php.net/fix.php?id=55405&r=needdocs
Fixed in release: https://bugs.php.net/fix.php?id=55405&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=55405&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=55405&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=55405&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=55405&r=support
Expected behavior: https://bugs.php.net/fix.php?id=55405&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=55405&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=55405&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=55405&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=55405&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=55405&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=55405&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=55405&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=55405&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=55405&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=55405&r=mysqlcfg