Skip to content

PHP 8.1: Implement __serialize() and __unserialize() #115

@Jan-E

Description

@Jan-E

The extension builds fine with PHP 8.1 (Windows, VS16) but issues several warnings when running the tests:

Deprecated: The Serializable interface is deprecated. Implement __serialize() and __unserialize() instead (or in addition, if support for old PHP versions is necessary)

When I ran the tests and suppressed E_DEPRECATED the results were the same as under PHP 8,.0, except for the test that explicitely tested for client deprecated methods:
https://github.com/m6w6/ext-http/blob/master/tests/client024.phpt

This test succeeded under PHP 8.0, but failed under PHP 8.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions