Skip to content

docs: PHP getLastError/clearLastError methods - #280

Open
Aryex wants to merge 1 commit into
mainfrom
alexl/agent/php-getlasterror-clearlasterror
Open

docs: PHP getLastError/clearLastError methods#280
Aryex wants to merge 1 commit into
mainfrom
alexl/agent/php-getlasterror-clearlasterror

Conversation

@Aryex

@Aryex Aryex commented Jul 25, 2026

Copy link
Copy Markdown
Collaborator

Summary

Document the new getLastError() and clearLastError() methods on ValkeyGlide/ValkeyGlideCluster for PHPRedis compatibility.

⚠️ Attention: This PR was generated automatically. Verify that all relevant pages have been updated.

Source Commits

Changes

  • Expanded the "Error Handling" section in the PHPRedis migration guide with a new subsection documenting getLastError() / clearLastError() methods
  • Added method signature table, behavior description, and side-by-side code examples (PHPRedis vs Valkey GLIDE)
  • Added notes about NOSCRIPT prefix preservation for framework compatibility
  • Added migration checklist item for error introspection verification

Context

Php #221 adds PHPRedis-compatible error introspection methods that libraries like Symfony Lock depend on. Without these methods, clearLastError() calls in Symfony Lock's RedisStore::evaluate() caused fatal errors. The documentation update ensures migrating users know these methods are now available and behave identically to PHPRedis.

cc @tnucera


This PR was generated by the automated documentation pipeline.

@Aryex Aryex added AI Generated documentation Improvements or additions to documentation php labels Jul 26, 2026
@Aryex
Aryex force-pushed the alexl/agent/php-getlasterror-clearlasterror branch from 372a196 to 0e379d1 Compare July 26, 2026 21:27
Signed-off-by: kiro-agent <kiro-agent@users.noreply.github.com>
@Aryex
Aryex force-pushed the alexl/agent/php-getlasterror-clearlasterror branch from 0e379d1 to 7d347a2 Compare July 27, 2026 14:18
@Aryex
Aryex marked this pull request as ready for review July 27, 2026 14:21
@Aryex
Aryex requested a review from affonsov July 27, 2026 15:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Generated documentation Improvements or additions to documentation php

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants