Skip to content

Conversation

@Girgias
Copy link
Member

@Girgias Girgias commented Nov 24, 2025

No description provided.


if (user_stub) {
char *pos = php_stristr(ZSTR_VAL(user_stub), halt_stub, ZSTR_LEN(user_stub), strlen(halt_stub));
const char *pos = php_memnistr(ZSTR_VAL(user_stub), halt_stub, strlen(halt_stub), ZSTR_VAL(user_stub)+ZSTR_LEN(user_stub));
Copy link
Member

Choose a reason for hiding this comment

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

Honestly, I'd just leave the line as-is, the php_memnistr is inlined aggressively and is quite long, so it introduces code bloat. By using php_stristr that bloat is kept inside php_stristr

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

2 participants