microsoft / microsoft/msphpsql

Return Type of resource replace by class

Open
#1,269 7 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feature request
Dominant language
PHP
Stars
1.9k
Forks
385
Avg merge
3d 22h
Merged PRs (30d)
1

Description

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.

image

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!!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the PHP driver's existing SQL API return types and the PHP 8 class-based resource pattern referenced in the issue. A useful outcome would define whether SQL resources should be replaced by classes in a future version and identify the affected API surface; no file or test is named, so project exploration is required.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, sql
Domain
databases
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.