Skip to content

Audit zend_ini_string() and related functions#21146

Open
Girgias wants to merge 6 commits intophp:masterfrom
Girgias:ini-audit-zend_ini_string
Open

Audit zend_ini_string() and related functions#21146
Girgias wants to merge 6 commits intophp:masterfrom
Girgias:ini-audit-zend_ini_string

Conversation

@Girgias
Copy link
Member

@Girgias Girgias commented Feb 6, 2026

Conflicts with #21143

I audited the usage of zend_ini_string() and co as I believe these functions should return a const char* because they point to a pointer owner by a zend_string *.

The two other things I am wondering is

  • if we should remove the INI_STR() macro as it doesn't follow the usual convention of "string" being a char* and "str" meaning a zend_string*.
  • if we should remove the INI_ORIG_* macros as they seem mostly pointless?

@Girgias Girgias force-pushed the ini-audit-zend_ini_string branch from 58f9395 to 5095e2f Compare February 6, 2026 03:13
@Girgias Girgias marked this pull request as ready for review February 6, 2026 12:27
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.

1 participant