Skip to content

Stdlib: extension_loaded('zip') true — ZipArchive without ext/zip (ext/zip/php_zip.c) #11676

Closed

Description

@PurHur

Summary

extension_loaded('zip') returns true and class_exists('ZipArchive') is true on VM while Zend (no ext/zip) reports both false. new ZipArchive() succeeds on VM — phantom extension probe before libzip parity (#3337, #5869, #6414).

Same registry class as #11669 curl / #11670 gd phantom probes.

php-src reference

Repro

test/repro/maintainer_gap_extension_loaded_zip_phantom.php

./script/docker-exec.sh -- bash -lc 'php test/repro/maintainer_gap_extension_loaded_zip_phantom.php; php bin/vm.php test/repro/maintainer_gap_extension_loaded_zip_phantom.php'

Zend: loaded=no, ZipArchive=no, probe=absent

VM: loaded=yes, ZipArchive=yes, probe=ok

Expected (php-src-strict)

Until ext/zip is fully implemented, extension_loaded('zip'), class_exists('ZipArchive'), and zip_* functions must all agree (absent/false).

Implementation hints

Done when

  • Repro matches Zend on VM
  • No extension_loaded('zip') true while ZipArchive unavailable

Activity

  1. added
    enhancementNew feature or request
    phase-4:stdlibPhase 4 – stdlib for web apps
    area:vmVirtual machine
    implementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claim
    on Jun 25, 2026
  2. PurHur commented on Jun 28, 2026

    @PurHur
    OwnerAuthor

    claim: PHP Compiler STD Lib — batch (issue #11676)

  3. PurHur commented on Jun 28, 2026

    @PurHur
    OwnerAuthor

    Merged via #13341. VM repro now prints loaded=no ZipArchive=no probe=absent matching Zend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:vmVirtual machineenhancementNew feature or requestimplementation-readySpec complete: repro, php-src ref, done-when — safe for workers to claimphase-4:stdlibPhase 4 – stdlib for web appsstdlib

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions