Skip to content

Stdlib: extract() enum case keys TypeError (#5756) - #20454

Merged
PurHur merged 1 commit into
masterfrom
agent/issue-5756-extract-enum-keys
Jul 18, 2026
Merged

PurHur merged 1 commit into
masterfrom
agent/issue-5756-extract-enum-keys

Conversation

@PurHur

@PurHur PurHur commented Jul 18, 2026

Copy link
Copy Markdown
Owner

Summary

php-src reference

  • ext/standard/basic_functions.c / zend_hash.c — illegal offset type for enum case keys

Test plan

  • Issue repro (Zend + VM):
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh
php test/repro-maintainer/parity_extract_enum_keys.php
php bin/vm.php test/repro-maintainer/parity_extract_enum_keys.php
'

Output (both): TypeError: Illegal offset type

  • Compliance:
./script/docker-exec.sh -- bash -lc 'source script/php-env.sh
php -d memory_limit=1536M vendor/bin/phpunit --filter extract_enum_keys
'

→ OK (2 tests, 2 assertions)

  • Trust (pre-claim): inventory OK 5596/5596, user_release_ready: yes

Made with Cursor

…5756)

Array construction already rejects enum case keys like Zend; add compliance and maintainer repro so the parity gate stays green.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stdlib: extract() with enum case array keys must TypeError (ext/standard/basic_functions.c)

1 participant