Doc #78593 [NEW]: Need to change the documentation to reflect the actual result.
| From: | shaun at shaunfreeman dot name | Date: | Wed, 25 Sep 2019 07:44:37 +0000 |
| Subject: | Doc #78593 [NEW]: Need to change the documentation to reflect the actual result. | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-16963@lists.php.net to get a copy of this message | ||
From: shaun at shaunfreeman dot name
Operating system: return type in documention is wr
PHP version: 7.3.9
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Need to change the documentation to reflect the actual result.
Description:
------------
---
From manual page:
https://php.net/mysql-xdevapi-session.getdefaultschema
---
The documentation says the return type is NULL or String when retrieving
the default schema when in reality it's NULL or a mysql_xdevapi\Schema
object.
I assume this is the right behaviour and documentation needs updating
I will send an update to the documentation for this.
Test script:
---------------
$session =
mysql_xdevapi\getSession('mysqlzx://dbuser:654321@mysql:33060/dbname');
$defaultSchema = $session->getDefaultSchema();
var_dump($defaultSchema);
Expected result:
----------------
string(6) "dbname"
Actual result:
--------------
object(mysql_xdevapi\Schema)#2 (1) { ["name"]=> string(6) "dbname" }
--
Edit bug report at https://bugs.php.net/bug.php?id=78593&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=78593&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=78593&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=78593&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=78593&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=78593&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=78593&r=support
Expected behavior: https://bugs.php.net/fix.php?id=78593&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=78593&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=78593&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=78593&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=78593&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=78593&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=78593&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=78593&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=78593&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=78593&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=78593&r=mysqlcfg