msphpsql
msphpsql copied to clipboard
Return Type of resource replace by class
Hi,
I was wondering, as I understand the type of resource is something in the future version they going to deprecate/replace. Now when i was just playing around with CURL under PHP8.0 and saw following items in documentation.
The documentation is based for PHP Storm, but is their a similar implementation possible?
As an example that's direct from PHP: https://www.php.net/manual/en/class.curlhandle.php
As a future implementation towards 8.1 or next version, can we apply the same logic under the SQL system?
Just a suggestion
Thanks for all the hard work!!
Thanks @jansor , and yes we are aware of the resource type going to be deprecated in the near future, but I'm not sure I understand your question.
Are you asking if we are going to define our own class(es) for sqlsrv/pdo_sqlsrv to communicate with SQL Server?
Hi @yitam , i assume yes,
I don't know how to implement this but for future releases of the driver, add opaque class? Similar to CurlHandle?
final SqlSrvHandle{ }
Under the documentation part its then possible to add:
This gives the advantage that we can define return types on methods and properties.
Thanks @jansor for the suggestion. Currently there is no immediate plan for this, but I'll mark this as a feature request.