Skip to content

SWC files don't work when zlib extension is built as shared #20868

@petk

Description

@petk

Description

The following code:

./buildconf
./configure --with-zlib=shared
make
./sapi/cli/php run-tests.php -d extension_dir=modules ext/standard/tests/image/getimagesize_swc.phpt

Resulted in this output:

test skipped

But I expected this output instead:

test passed

To have SWC files (even though they are obsolete), the zlib extension needs to be built statically with PHP. This prevents packages to build a shared zlib extension. As there is now a new API and image types can be dynamically registered from extensions, this can be probably resolved differently as done in the previous pull requests.

See also:

PHP Version

All PHP versions

Operating System

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions