| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
…on metadata methods
|
@michael-grunder, @yatsukhnenko, any thoughts on this? |
Sorry, something went wrong.
|
This should work for most of the methods but the ones that throw an exception don't technically return anything. Ideally, instead of returning false in the C code, we should use RETURN_THROWS. We could maybe update the logic to do that in 6.1.1 though. I am able to get a false return from these methods: $r->getDBNum() => false
$r->getHost() => false
$r->getPersistentID() => false
$r->getPort() => false
$r->getReadTimeout() => falseThese throw an exception: $r->getLastError() => exception
$r->getMode() => exception |
Sorry, something went wrong.
|
I'll wait for the release of 6.1.0, then I can change the methods to use RETURN_THROWS. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
These methods return false if we're not connected. This should be reflected in the stub and arginfo.
I'm sure that the same applies to many other methods as well, but here I've focused on the get*() methods that return metadata about the connection.