Skip to content

Resource to opaque object migration #6

Open
@Girgias

Description

@Girgias

A long term project is to move all extension resources to objects as they are all in all better.

This issue aims to list the remaining usages of resources within php-src

Related RFC: https://wiki.php.net/rfc/resource_to_object_conversion

PHP 8.0:

PHP 8.1:

Scheduled for PHP 8.4:

Scheduled for PHP 9.0:

Remaining:

  • stream (main/, ext/standard/) [libxml_set_streams_context() is also affected]
    • file/dir streams: le_stream / le_pstream
    • context: le_stream_context
    • filter: le_stream_filter
    • Bucket API: le_bucket / le_bucket_brigade

Persistent resources that are only used internally and not exposed to userland:

  • MySQLi: le_pmysqli
  • PDO: le_ppdo
  • PGSQL: le_plink
  • ODBC: le_pconn
  • DBA: le_pdb

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions