Skip to content

Use zend_hash_find_ptr_lc() for case-insensitive name lookups#22591

Open
jorgsowa wants to merge 3 commits into
php:masterfrom
jorgsowa:jorgsowa/hash-find-ptr-lc-batch2
Open

Use zend_hash_find_ptr_lc() for case-insensitive name lookups#22591
jorgsowa wants to merge 3 commits into
php:masterfrom
jorgsowa:jorgsowa/hash-find-ptr-lc-batch2

Conversation

@jorgsowa

@jorgsowa jorgsowa commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Continues #22565 for four sites that were missed: _class_exists_impl(), function_exists(), pdo_stmt.c's dbstmt_method_get(), ReflectionClass:: hasMethod()/getMethod(), and phpdbg's print func/method commands. No behavior change.

@Girgias Girgias left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Except the reflection changes, makes sense.

Comment thread ext/reflection/php_reflection.c
@jorgsowa
jorgsowa requested a review from Girgias July 8, 2026 16:07
@jorgsowa
jorgsowa force-pushed the jorgsowa/hash-find-ptr-lc-batch2 branch 2 times, most recently from d4f63f7 to 3c9862b Compare July 10, 2026 21:36
jorgsowa added 2 commits July 18, 2026 23:29
Continues php#22565 for four sites that were missed: _class_exists_impl(),
function_exists(), pdo_stmt.c's dbstmt_method_get(), ReflectionClass::
hasMethod()/getMethod(), and phpdbg's print func/method commands. No
behavior change.
@jorgsowa
jorgsowa force-pushed the jorgsowa/hash-find-ptr-lc-batch2 branch from 3c9862b to a774713 Compare July 18, 2026 21:31

@DanielEScherzer DanielEScherzer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only reviewed ext/reflection

Comment thread ext/reflection/php_reflection.c Outdated
{
reflection_object *intern;
zend_class_entry *ce;
zend_function *mptr;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you have some unrelated changes, presumably from a rebase - please move/restore variables to be declared as late as possible

  • zend_function *mptr and zval obj_tmp should be right before is_invoke is defined
  • is_invoke should be declared and defined in the same statement

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's true. Thanks for catching it

@DanielEScherzer DanielEScherzer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

okay for ext/reflection

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.

3 participants