Skip to content

Stdlib: count, array_key_exists, is_object and VM fixes - #19

Merged
PurHur merged 1 commit into
masterfrom
stdlib-array-count-key-exists
May 18, 2026
Merged

Stdlib: count, array_key_exists, is_object and VM fixes#19
PurHur merged 1 commit into
masterfrom
stdlib-array-count-key-exists

Conversation

@PurHur

@PurHur PurHur commented May 18, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add VM implementations and PHPT compliance specs for count(), array_key_exists(), and is_object().
  • Fix top-level script frame setup so superglobals and compiled functions (e.g. str_repeat, is_array) run correctly on PHP 8.2.
  • Fix test harness: always load PHP extensions when PHP_COMPILER_PHP is set, and merge parent environment for PHPT ENV sections so $_GET web tests work.

Test plan

  • vendor/bin/phpunit — 213 tests, 145 assertions, 96 skipped (JIT without LLVM)
  • Manual VM smoke: count, array_key_exists, is_array, str_repeat, $_GET query params

Made with Cursor

Add PHPT specs and VM implementations for basic array builtins, register
is_object in the types module, and fix top-level frame resolution, null
literal types for superglobals, and proc_open ENV inheritance in tests.

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.

1 participant