Skip to content

Use a single version of strnlen #12015

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 22, 2023
Merged

Conversation

crrodriguez
Copy link
Contributor

There are multiple internal definitions of the posix 2008 strnlen function, consolidate them by exporting zend_strnlen and use it everywhere.

Copy link
Member

@iluuu1994 iluuu1994 left a comment

Choose a reason for hiding this comment

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

Thank you @crrodriguez!

@iluuu1994 iluuu1994 merged commit 782ffd7 into php:master Aug 22, 2023
@iluuu1994
Copy link
Member

@crrodriguez Perfect, thank you!

jorgsowa pushed a commit to jorgsowa/php-src that referenced this pull request Aug 24, 2023
* Zend: Make zend_strnlen available for use outside zend_compile

* exif: remove local php_strnlen, use zend_strnlen instead

* main: remove local strnlen, use zend_strnlen instead

* phar: remove local strnlen, use zend_strnlen
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