Skip to content

Stdlib: FFI\CData ArrayAccess for C arrays (#22761) - #22763

Merged
PurHur merged 1 commit into
masterfrom
agent/advanced-stdlib-22761-ffi-cdata-array
Jul 24, 2026
Merged

Stdlib: FFI\CData ArrayAccess for C arrays (#22761)#22763
PurHur merged 1 commit into
masterfrom
agent/advanced-stdlib-22761-ffi-cdata-array

Conversation

@PurHur

@PurHur PurHur commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

Test plan

  • php bin/vm.php test/repro/issue_22761_ffi_cdata_array.php matches Zend (1 2 3 / mid=99)
  • phpunit --filter ffi_cdata_array_access|ffi_memcpy|ffi_new_cast OK
  • inventory --check OK

Made with Cursor

Enable int[N] index read/write via offsetGet/offsetSet on the host CData
bridge. offsetExists/Unset match Zend’s “Cannot use object as array”.

Co-authored-by: Cursor <cursoragent@cursor.com>
@PurHur
PurHur merged commit 36d67db into master Jul 24, 2026
1 check failed
@PurHur
PurHur deleted the agent/advanced-stdlib-22761-ffi-cdata-array branch July 24, 2026 01:48
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: FFI\CData ArrayAccess for C arrays missing after #22369 (ext/ffi/ffi.c)

1 participant