Skip to content

fix: warn on deprecated index creation methods (closes #169) - #185

Merged
s2x merged 1 commit into
mainfrom
fix/issue-169-deprecated-index-warnings
Jul 30, 2026
Merged

fix: warn on deprecated index creation methods (closes #169)#185
s2x merged 1 commit into
mainfrom
fix/issue-169-deprecated-index-warnings

Conversation

@s2x

@s2x s2x commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

Description

Closes #169

Changes

  • Emit E_USER_DEPRECATED from the four deprecated index-creation wrappers in the PHP FFI implementation.
  • Point each warning to the corresponding createIndex() plus ZVecIndexParams factory.
  • Add regression coverage for exact warning messages and delegation behavior.
  • Suppress only the targeted createIndex() deprecation messages in existing tests that intentionally exercise legacy wrappers.
  • Document the fix under CHANGELOG.md Unreleased.

Testing

  • php run-tests.php -n -d ffi.enable=1 tests/ — 172 passed, 2 expected XFAIL, 2 platform/feature skips
  • git diff --check
  • test_dbs/ cleaned

Code Review

  • Passed subagent code review
  • All review comments addressed

The native PHP extension is intentionally unchanged: it does not expose the unified createIndex() / ZVecIndexParams API or the HNSW-RaBitQ legacy wrapper; the change is explicitly scoped to the FFI implementation.

@s2x s2x self-assigned this Jul 30, 2026
@s2x
s2x merged commit 4e03011 into main Jul 30, 2026
3 checks passed
@s2x
s2x deleted the fix/issue-169-deprecated-index-warnings branch July 30, 2026 22:11
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.

Deprecated create*Index() methods don't emit E_USER_DEPRECATED at runtime

1 participant