Skip to content

ext/dba: switch dba_handlers full_info path to zend_string API#22229

Open
arshidkv12 wants to merge 4 commits into
php:masterfrom
arshidkv12:realloc-1
Open

ext/dba: switch dba_handlers full_info path to zend_string API#22229
arshidkv12 wants to merge 4 commits into
php:masterfrom
arshidkv12:realloc-1

Conversation

@arshidkv12
Copy link
Copy Markdown
Contributor

Replace legacy char* handling with zend_string in hptr->info()
removal path to avoid manual efree() and improve memory safety.

@devnexen
Copy link
Copy Markdown
Member

devnexen commented Jun 5, 2026

the CI failure are very much related. Couple of remarks.

  • while migrating to zend_string is a nice move, I think the memory safety improvement claim is very exaggerated.
  • dba_gdbm.c had been forgotten.
  • dba_tcadb.c has double ;.
  • I think this kind of change belong to a broader internal rewrite.

@arshidkv12
Copy link
Copy Markdown
Contributor Author

Thank you. Let me check it

@devnexen
Copy link
Copy Markdown
Member

devnexen commented Jun 5, 2026

seems to look better but I ll leave the final decision to Gina, especially about my last point.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants